CVE-2024-50279 json
dm cache: fix out-of-bounds access to the dirty bitset when resizing
published 2024-11-19 23 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-44781
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
dm cache: fix out-of-bounds access to the dirty bitset when resizing
dm-cache checks the dirty bits of the cache blocks to be dropped when shrinking the fast device, but an index bug in bitset iteration causes out-of-bounds access.
Reproduce steps:
1. create a cache device of 1024 cache blocks (128 bytes dirty bitset)
dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" dmsetup create cdata --table "0 131072 linear /dev/sdc 8192" dmsetup create corig --table "0 524288 linear /dev/sdc 262144" dd if=/dev/zero 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"
2. shrink the fast device to 512 cache blocks, triggering out-of-bounds access to the dirty bitset (offset 0x80)
dmsetup suspend cache dmsetup reload cdata --table "0 65536 linear /dev/sdc 8192" dmsetup resume cdata dmsetup resume cache
KASAN reports:
BUG: KASAN: vmalloc-out-of-bounds in cache_preresume+0x269/0x7b0 Read of size 8 at addr ffffc900000f3080 by task dmsetup/131
(...snip...) The buggy address belongs to the virtual mapping at [ffffc900000f3000, ffffc900000f5000) created by: cache_ctr+0x176a/0x35f0
(...snip...) Memory state around the buggy address: ffffc900000f2f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900000f3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900000f3080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc900000f3100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900000f3180: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
Fix by making the index post-incremented.
Patch / fix
- Linux Linux 4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8, 6.12
- linux Debian 12 6.1.119-1
- linux Debian 14, Debian 13 6.11.9-1
debian advisories DEBIAN-CVE-2024-50279
- linux Ubuntu 20.04 LTS 5.4.0-208.228
- linux Ubuntu 22.04 LTS 5.15.0-133.144
- linux Ubuntu 24.04 LTS 6.8.0-58.60
- linux-aws Ubuntu 20.04 LTS 5.4.0-1140.150
- linux-aws Ubuntu 22.04 LTS 5.15.0-1078.85
- linux-aws Ubuntu 24.04 LTS 6.8.0-1027.29
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1143.152
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1077.86
ubuntu advisories UBUNTU-CVE-2024-50279
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-livepatch-MICRO-6-0_Update_3 Linux Micro 6.0 7-1.2
- kernel-livepatch-MICRO-6-0_Update_2 Linux Micro 6.1, Linux Micro 6.0 7-1.1
- kernel-livepatch-MICRO-6-0-RT_Update_3 Linux Micro 6.0 7-1.2
- kgraft-patch-SLE12-SP5_Update_61 SLE Live Patching 12 SP5 18-4.1
- kernel-livepatch-SLE15-SP5_Update_19 SLE Live Patching 15 SP5 10-150500.3.1
- kernel-livepatch-SLE15-SP6_Update_3 SLE Live Patching 15 SP6 16-150600.2.2
- kernel-livepatch-SLE15-SP5_Update_14 SLE Live Patching 15 SP5 18-150500.2.1
- kernel-livepatch-SLE15-SP4_Update_33 SLE Live Patching 15 SP4 9-150400.2.1
suse advisories SUSE-SU-2025:4123-1SUSE-SU-2025:02171-1SUSE-SU-2025:02162-1SUSE-SU-2025:02157-1SUSE-SU-2025:02154-1SUSE-SU-2025:02144-1
- git.kernel.org/stable/c/4fa4feb873cea0e9d6ff883b37cca6f33169d8b4 commit
- git.kernel.org/stable/c/8501e38dc9e0060814c4085815fc83da3e6d43bf commit
- git.kernel.org/stable/c/ee1f74925717ab36f6a091104c170639501ce818 commit
- git.kernel.org/stable/c/ff1dd8a04c30e8d4e2fd5c83198ca672eb6a9e7f commit
- git.kernel.org/stable/c/56507203e1b6127967ec2b51fb0b23a0d4af1334 commit
- git.kernel.org/stable/c/e57648ce325fa405fe6bbd0e6a618ced7c301a2d commit
- git.kernel.org/stable/c/3b02c40ff10fdf83cc545850db208de855ebe22c commit
- git.kernel.org/stable/c/792227719725497ce10a8039803bec13f89f8910 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-50279 updated cvss 6.0
kernel: dm cache: fix out-of-bounds access to the dirty bitset when resizing
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 moreaffected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-226-07 updated cvss 5.5
Siemens Third-Party Components in SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 3.2affected: fixed in V3.2 support.industry.siemens.com
-
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < 3.2affected: fixed in V3.2
-
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < 3.2affected: fixed in V3.2 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/4fa4feb873cea0e9d6ff883b37cca6f33169d8b4
patch
-
git.kernel.org
/stable/c/8501e38dc9e0060814c4085815fc83da3e6d43bf
patch
-
git.kernel.org
/stable/c/ee1f74925717ab36f6a091104c170639501ce818
patch
-
git.kernel.org
/stable/c/ff1dd8a04c30e8d4e2fd5c83198ca672eb6a9e7f
patch
-
git.kernel.org
/stable/c/56507203e1b6127967ec2b51fb0b23a0d4af1334
patch
-
git.kernel.org
/stable/c/e57648ce325fa405fe6bbd0e6a618ced7c301a2d
patch
-
git.kernel.org
/stable/c/3b02c40ff10fdf83cc545850db208de855ebe22c
patch
-
git.kernel.org
/stable/c/792227719725497ce10a8039803bec13f89f8910
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00002.html
- lists.debian.org /debian-lts-announce/2025/01/msg00001.html
Sources
- CVE List CVE-2024-50279
- NVD CVE-2024-50279
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.