Bug 2334512 (CVE-2024-56625) - CVE-2024-56625 kernel: can: dev: can_set_termination(): allow sleeping GPIOs
Summary: CVE-2024-56625 kernel: can: dev: can_set_termination(): allow sleeping GPIOs
Keywords:
Status: NEW
Alias: CVE-2024-56625
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 15:06 UTC by OSIDB Bzimport
Modified: 2025-02-12 08:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 15:06:53 UTC
In the Linux kernel, the following vulnerability has been resolved:

can: dev: can_set_termination(): allow sleeping GPIOs

In commit 6e86a1543c37 ("can: dev: provide optional GPIO based
termination support") GPIO based termination support was added.

For no particular reason that patch uses gpiod_set_value() to set the
GPIO. This leads to the following warning, if the systems uses a
sleeping GPIO, i.e. behind an I2C port expander:

| WARNING: CPU: 0 PID: 379 at /drivers/gpio/gpiolib.c:3496 gpiod_set_value+0x50/0x6c
| CPU: 0 UID: 0 PID: 379 Comm: ip Not tainted 6.11.0-20241016-1 #1 823affae360cc91126e4d316d7a614a8bf86236c

Replace gpiod_set_value() by gpiod_set_value_cansleep() to allow the
use of sleeping GPIOs.

Comment 1 Avinash Hanwate 2024-12-28 04:29:26 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122711-CVE-2024-56625-82a7@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.