VDB

CVE-2024-50280

CVE-2024-50280 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernelAmazon Linux6.1.119-129.201.amzn2023
kernel-libbpf-staticAmazon Linux6.1.119-129.201.amzn2023
kernel-toolsAmazon Linux6.1.119-129.201.amzn2023
kernel-livepatch-6.1.119-129.201Amazon Linux1.0-0.amzn2023
kernel-modules-extraAmazon Linux6.1.119-129.201.amzn2023
kernel-headersAmazon Linux6.1.119-129.201.amzn2023
kernel-tools-develAmazon Linux6.1.119-129.201.amzn2023
linux_kernellinux6.11.8, 6.6.61, 6.1.117, 6.1, 5.16, 5.11, 5.5, 4.20, 4.15, 4.10
LinuxLinux8cc12dab635333c4ea28e72d7b947be7d0543c2c, 5a754d3c771280f2d06bf8ab716d6a0d36ca256e, 4.15

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux2b17026685a270b2beaf1cdd9857fcedd3505c7e, d2a0b298ebf83ab6236f66788a3541e91ce75a70, 6a3e412c2ab131c54945327a7676b006f000a209
LinuxLinux6.2, 0, 5.10.237
amazon:2023kernel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools0
amazon:2023kernel-livepatch-6.1.119-129.2010
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
LinuxLinux6.0.18, 5.15.181, 6.1.117
amazon:2023kernel-libbpf0
amazon:2023bpftool0
amazon:2023python3-perf0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-devel0
linuxlinux_kernel6.2, 5.15.87, 6.1.4
amazon:2023perf0
amazon:2023kernel-modules-extra-common0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›