All vulnerabilities

Servers and applications

CVE-2026-53059

dm log: fix out-of-bounds write due to region_count overflow

Severity
Medium 6.3
Published
24 Jun 2026
Last changed
6 Nov 2026
Added to UpHeron
6 Nov 2026
Fixed in
5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10
Exploit chance
0.1% in the next 30 daysHigher than 3% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Integer overflow (CWE-190)
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Sources
CVE Program

Description

In the Linux kernel, the following vulnerability has been resolved:

The local variable region_count in create_log_context() is declared as unsigned int (32-bit), but dm_sector_div_up() returns sector_t (64-bit). When a device-mapper target has a sufficiently large ti->len with a small region_size, the division result can exceed UINT_MAX. The truncated value is then used to calculate bitset_size, causing clean_bits, sync_bits, and recovering_bits to be allocated far smaller than needed for the actual number of regions.

Subsequent log operations (log_set_bit, log_clear_bit, log_test_bit) use region indices derived from the full untruncated region space, causing out-of-bounds writes to kernel heap memory allocated by vmalloc.

This can be reproduced by creating a mirror target whose region_count overflows 32 bits:

dmsetup create bigzero --table '0 8589934594 zero' dmsetup create mymirror --table '0 8589934594 mirror \ core 2 2 nosync 2 /dev/mapper/bigzero 0 \ /dev/mapper/bigzero 0'

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.0.10
  • From 6.13 before 6.18.33
  • From 6.7 before 6.12.91
  • From 6.2 before 6.6.141
All 7 release lines
  • From 2.6.12 before 5.10.258
  • From 5.11 before 5.15.209
  • From 5.16 before 6.1.175
  • From 6.2 before 6.6.141
  • From 6.7 before 6.12.91
  • From 6.13 before 6.18.33
  • From 6.19 before 7.0.10

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-53059