CVE-2026-53059
dm log: fix out-of-bounds write due to region_count overflow
Check your servers for CVE-2026-53059
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-53059 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
dm log: fix out-of-bounds write due to region_count overflow
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'
The status output confirms the truncation (sync_count=1 instead of 4294967297, because 0x100000001 was truncated to 1):
$ dmsetup status mymirror 0 8589934594 mirror 2 254:1 254:1 1/4294967297 ...
This leads to a kernel crash in core_in_sync:
BUG: scheduling while atomic: (udev-worker)/9150/0x00000000 RIP: 0010:core_in_sync+0x14/0x30 [dm_log] CR2: 0000000000000008 Fixing recursive fault but reboot is needed!
Fix by widening the local region_count to sector_t and adding an explicit overflow check before the value is assigned to lc->region_count.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.62% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-190 Integer Overflow or Wraparound
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 44ab8875ae4a2842bde2d756bed195d375e0debb affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before defe483e47173768c227532694dc78cb65db5f09 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3ec74da927b4e171a6fc0e77b1188ba4d019af51 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d4ac87567f86a55c3c92e9a5144dcd943a9772a1 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 12bd5b88e91a02785244ff1d20fb157e96e9cdc8 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b455903eed4558982be0811f5b7f44f6bbc4ff57 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 4ec8323b9f0764a14d532b1ae9b87f8a9fecb867 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c20e36b7631d83e7535877f08af8b0af72c44b1a
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.141 up to and including 6.6.* unaffected from 6.12.91 up to and including 6.12.* unaffected from 6.18.33 up to and including 6.18.* unaffected from 7.0.10 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-53059 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-53059
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-53059
trivy image --scanners vuln IMAGE | grep CVE-2026-53059
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-53059 access.redhat.com · vdb entry
- RHBZ#2492277 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:61692 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:63189 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:55445 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:45114 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59662 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56574 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:45192 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:45115 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:47248 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:53989 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:52649 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:45116 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:59663 access.redhat.com · vendor advisory
Other references
- https://git.kernel.org/stable/c/44ab8875ae4a2842bde2d756bed195d375e0debb git.kernel.org
- https://git.kernel.org/stable/c/defe483e47173768c227532694dc78cb65db5f09 git.kernel.org
- https://git.kernel.org/stable/c/3ec74da927b4e171a6fc0e77b1188ba4d019af51 git.kernel.org
- https://git.kernel.org/stable/c/d4ac87567f86a55c3c92e9a5144dcd943a9772a1 git.kernel.org
- https://git.kernel.org/stable/c/12bd5b88e91a02785244ff1d20fb157e96e9cdc8 git.kernel.org
- https://git.kernel.org/stable/c/b455903eed4558982be0811f5b7f44f6bbc4ff57 git.kernel.org
- https://git.kernel.org/stable/c/4ec8323b9f0764a14d532b1ae9b87f8a9fecb867 git.kernel.org
- https://git.kernel.org/stable/c/c20e36b7631d83e7535877f08af8b0af72c44b1a git.kernel.org
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53059.json security.access.redhat.com
Source: the record CVE-2026-53059 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse