CVE-2026-45994
ibmasm: fix OOB reads in command_file_write due to missing size checks
Check your servers for CVE-2026-45994
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-45994 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:
ibmasm: fix OOB reads in command_file_write due to missing size checks
The command_file_write() handler allocates a kernel buffer of exactly count bytes and copies user data into it, but does not validate the buffer against the dot command protocol before passing it to get_dot_command_size() and get_dot_command_timeout().
Since both the allocation size (count) and the header fields (command_size, data_size) are independently user-controlled, an attacker can cause get_dot_command_size() to return a value exceeding the allocation, triggering OOB reads in get_dot_command_timeout() and an out-of-bounds memcpy_toio() that leaks kernel heap memory to the service processor.
Fix with two guards: reject writes smaller than sizeof(struct dot_command_header) before allocation, then after copying user data reject commands where the buffer is smaller than the total size declared by the header (sizeof(header) + command_size + data_size). This ensures all subsequent header and payload field accesses stay within the buffer.
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 3.34% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 44ee19422aa82a6847594866de7e5a31e4ef98b3 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7b8a574da5d7ea99b943f7a3458a17a1d95e8838 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d50e2019c9d7c433f56d9dff65703eb904aa1fb1 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a672682d39dd34e2b5ba4feb436723bed65125ff affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before aefc1a97da17d8309974690c8a03e439a91ebb1c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ee5737891464030a189837467df3b81a273718ad affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d0fb4d1dc43f8d5179917a2daaa82680993d4cdf affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0eb09f737428e482a32a2e31e5e223f2b35a71d3
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.140 up to and including 6.6.* unaffected from 6.12.86 up to and including 6.12.* unaffected from 6.18.27 up to and including 6.18.* unaffected from 7.0.4 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-45994 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-45994
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-45994
trivy image --scanners vuln IMAGE | grep CVE-2026-45994
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/44ee19422aa82a6847594866de7e5a31e4ef98b3 git.kernel.org
- https://git.kernel.org/stable/c/7b8a574da5d7ea99b943f7a3458a17a1d95e8838 git.kernel.org
- https://git.kernel.org/stable/c/d50e2019c9d7c433f56d9dff65703eb904aa1fb1 git.kernel.org
- https://git.kernel.org/stable/c/a672682d39dd34e2b5ba4feb436723bed65125ff git.kernel.org
- https://git.kernel.org/stable/c/aefc1a97da17d8309974690c8a03e439a91ebb1c git.kernel.org
- https://git.kernel.org/stable/c/ee5737891464030a189837467df3b81a273718ad git.kernel.org
- https://git.kernel.org/stable/c/d0fb4d1dc43f8d5179917a2daaa82680993d4cdf git.kernel.org
- https://git.kernel.org/stable/c/0eb09f737428e482a32a2e31e5e223f2b35a71d3 git.kernel.org
Source: the record CVE-2026-45994 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse