CVE-2024-56625
can: dev: can_set_termination(): allow sleeping GPIOs
Reported by linux · Published December 27, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| bpftool | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.124-134.200.amzn2023 |
| linux_kernel | linux | 6.12.5, 6.6.66, 6.1.120, 5.15.174 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 6e86a1543c378f2e8837ad88f361b7bf606c80f7, 6e86a1543c378f2e8837ad88f361b7bf606c80f7, 6e86a1543c378f2e8837ad88f361b7bf606c80f7 |
| Linux | Linux | 5.15, 0, 5.15.174 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
| Linux | Linux | 6.13, 6e86a1543c378f2e8837ad88f361b7bf606c80f7, 6e86a1543c378f2e8837ad88f361b7bf606c80f7 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.124-134.200 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
Timeline
- Dec 27, 2024 CVE Published
- Dec 28, 2024 EPSS Score (30 in total, the first dated here)
- Feb 3, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 29, 2025 Security Advisory (438 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (356 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-56625
vulnetix vdb fixes CVE-2024-56625
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56625/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart