CVE-2026-89557
md: do overflow check for sb->bblog_shift in super_1_load()
Check your servers for CVE-2026-89557
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-89557 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:
md: do overflow check for sb->bblog_shift in super_1_load()
In super_1_load(), sb->bblog_shift is an __u8 type value loaded from on- disk superblock. It is used for badblocks API badblocks_set() by the following sequence,
1930 rdev->badblocks.shift = sb->bblog_shift; 1931 for (i = 0 ; i < (sectors << (9-3)) ; i++, bbp++) { 1932 u64 bb = le64_to_cpu(*bbp); 1933 int count = bb & (0x3ff); 1934 u64 sector = bb >> 10; 1935 sector <<= sb->bblog_shift; 1936 count <<= sb->bblog_shift; 1937 if (bb + 1 == 0) 1938 break; 1939 if (!badblocks_set(&rdev->badblocks, sector, count, 1)) 1940 return -EINVAL; 1941 }
bb->bblog_shit is in range of 0-255, variable sector is 64bit width, for an invalid bb->bblog_shit, it is possible to make sector be overflowed by the following calculation, 1935 sector <<= sb->bblog_shift; Then in turn when call badblocks_set() at line 1939 with the invalid rdev->badblocks.shift set at line 1930, may result an overflow inside _badblocks_clear() in block/badblocks.c.
Although there are many places to call badblocks APIs, the non-zero shift value is only used in super_1_load(), other places always use 0 as the shift value. Therefore it is unnecessary to do a general shift value overflow check inside badblock API, and just check here as the caller.
This may avoid unnecessary check, make the badblocks API code more simple and elegant.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- 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 high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.51% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 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
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 94c820d99a4305d4ded41a97ed37ec7d26c56e7f affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 573fb68105fdc6a127ba6069e58a0d2aff3c9f93 affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 323f3a056dbccb39a642ebde642044a680f3a6d6 affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 0a03f9541c06fda64301dcf94f376f07ce2cc396 affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 75d15738fd33a782606d0dc80cfeff47edf2ddd8 affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 3b097416b4cff77285c1f472fc2c4058d8a7554f affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before df7d4d011d5ace20699ea948712f09f9ac08924f affected from 2699b67223aca6b1450fc2f72e40fada952afc85, before 35d522bd32462afcf1981dab6da8a9256c26c1e0
Other versions: unaffected
|
| Linux |
affected 3.1 unaffected before 3.1 unaffected from 5.10.270 up to and including 5.10.* unaffected from 5.15.221 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.109 up to and including 6.12.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 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-89557 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89557
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-89557
trivy image --scanners vuln IMAGE | grep CVE-2026-89557
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
Other references
- https://git.kernel.org/stable/c/94c820d99a4305d4ded41a97ed37ec7d26c56e7f git.kernel.org
- https://git.kernel.org/stable/c/573fb68105fdc6a127ba6069e58a0d2aff3c9f93 git.kernel.org
- https://git.kernel.org/stable/c/323f3a056dbccb39a642ebde642044a680f3a6d6 git.kernel.org
- https://git.kernel.org/stable/c/0a03f9541c06fda64301dcf94f376f07ce2cc396 git.kernel.org
- https://git.kernel.org/stable/c/75d15738fd33a782606d0dc80cfeff47edf2ddd8 git.kernel.org
- https://git.kernel.org/stable/c/3b097416b4cff77285c1f472fc2c4058d8a7554f git.kernel.org
- https://git.kernel.org/stable/c/df7d4d011d5ace20699ea948712f09f9ac08924f git.kernel.org
- https://git.kernel.org/stable/c/35d522bd32462afcf1981dab6da8a9256c26c1e0 git.kernel.org
Source: the record CVE-2026-89557 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse