CVE-2024-50280
dm cache: fix flushing uninitialized delayed_work on cache_ctr error
Reported by linux · Published November 19, 2024
In the Linux kernel, the following vulnerability has been resolved: dm cache: fix flushing uninitialized delayed_work on cache_ctr error An unexpected WARN_ON from flush_work() may occur when cache creation fails, caused by destroying the uninitialized delayed_work waker in the error path of cache_create(). For example, the warning appears on the superblock checksum error. Reproduce steps: dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" dmsetup create cdata --table "0 65536 linear /dev/sdc 8192" dmsetup create corig --table "0 524288 linear /dev/sdc 262144" dd if=/dev/urandom of=/dev/mapper/cmeta bs=4k count=1 oflag=direct dmsetup create cache --table "0 524288 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0" Kernel logs: (snip) WARNING: CPU: 0 PID: 84 at kernel/workqueue.c:4178 __flush_work+0x5d4/0x890 Fix by pulling out the cancel_delayed_work_sync() from the constructor's error path. This patch doesn't affect the use-after-free fix for concurrent dm_resume and dm_destroy (commit 6a459d8edbdb ("dm cache: Fix UAF in destroy()")) as cache_dtr is not changed.
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 | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-livepatch-6.1.119-129.201 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.119-129.201.amzn2023 |
| linux_kernel | linux | 6.11.8, 6.6.61, 6.1.117, 6.1, 5.16, 5.11, 5.5, 4.20, 4.15, 4.10 |
| Linux | Linux | 8cc12dab635333c4ea28e72d7b947be7d0543c2c, 5a754d3c771280f2d06bf8ab716d6a0d36ca256e, 4.15 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2b17026685a270b2beaf1cdd9857fcedd3505c7e, d2a0b298ebf83ab6236f66788a3541e91ce75a70, 6a3e412c2ab131c54945327a7676b006f000a209 |
| Linux | Linux | 6.2, 0, 5.10.237 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-livepatch-6.1.119-129.201 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Linux | Linux | 6.0.18, 5.15.181, 6.1.117 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| linux | linux_kernel | 6.2, 5.15.87, 6.1.4 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
Timeline
- Nov 18, 2024 CVE Published
- Nov 19, 2024 EPSS Score (30 in total, the first dated here)
- Nov 19, 2024 Coalition ESS Score (12 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 2, 2026 Security Advisory (252 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (205 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50280
vulnetix vdb fixes CVE-2024-50280
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-50280/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart