dm era: fix out-of-bounds memory access for non-zero start sector
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel fe94a0b14010a3c267ff9a2508afb4f27ff1c5bf, Kernel 1fcb5e29dd7a5b85adb9d8b539911741d878e829, Kernel 7e1822f83c5a1ee7b4a19e98edde8770a10b4c71 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: dm era: fix out-of-bounds memory access for non-zero start sector dm-era tracks writes in target-relative blocks, but era_map() calculates the writeset block before applying the target offset. Tables with a non-zero start sector can therefore pass an absolute mapped-device block to metadata_current_marked(). If the absolute block is beyond the current writeset size, writeset_marked() tests past the end of the in-core bitset. KASAN reports this as a vmalloc-out-of-bounds access. Apply the target offset before calculating the era block so writeset lookups use the target-relative block number.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=eec40579d84873dfb7021eb24c50360f073237c5 <fe94a0b14010a3c267ff9a2508afb4f27ff1c5bf, >=eec40579d84873dfb7021eb24c50360f073237c5 <1fcb5e29dd7a5b85adb9d8b539911741d878e829, >=eec40579d84873dfb7021eb24c50360f073237c5 <7e1822f83c5a1ee7b4a19e98edde8770a10b4c71, >=eec40579d84873dfb7021eb24c50360f073237c5 <9946a7176bd8c25ddd6e5f1799c54e572ee6bf0f, >=eec40579d84873dfb7021eb24c50360f073237c5 <a868196f03c2b19418ae3d2b69e195d668a271e5, >=eec40579d84873dfb7021eb24c50360f073237c5 <bafe3e720cdac38cd7ea4eb7852a8f2dbe1bbfe6, >=eec40579d84873dfb7021eb24c50360f073237c5 <db5f9b4601f0012038e5a2628aedec2f47933380, >=eec40579d84873dfb7021eb24c50360f073237c5 <e3ffa8e492e5cdee62d916ee3e9244ccce2b73c5, =3.15 | fe94a0b14010a3c267ff9a2508afb4f27ff1c5bf, 1fcb5e29dd7a5b85adb9d8b539911741d878e829, 7e1822f83c5a1ee7b4a19e98edde8770a10b4c71, 9946a7176bd8c25ddd6e5f1799c54e572ee6bf0f, a868196f03c2b19418ae3d2b69e195d668a271e5, bafe3e720cdac38cd7ea4eb7852a8f2dbe1bbfe6, db5f9b4601f0012038e5a2628aedec2f47933380, e3ffa8e492e5cdee62d916ee3e9244ccce2b73c5 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=3.15.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket