CVE-2026-99157
scsi: bsg: Pass reply_len to bsg_setup_queue() to fit UFS ARPMB replies
Check your servers for CVE-2026-99157
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-99157 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:
scsi: bsg: Pass reply_len to bsg_setup_queue() to fit UFS ARPMB replies
bsg-lib allocates a 96-byte (SCSI_SENSE_BUFFERSIZE) reply buffer per job, but struct ufs_rpmb_reply is 104 bytes: a 40-byte struct ufs_bsg_reply followed by a 64-byte EHS. When an Advanced RPMB command returns an EHS, ufshcd_advanced_rpmb_req_handler() copies it right after the 40-byte header and writes 8 bytes past the end of the buffer.
Let each BSG transport pass its reply buffer size to bsg_setup_queue() and have ufs_bsg request sizeof(struct ufs_rpmb_reply), so the full reply reaches user space. Other transports keep SCSI_SENSE_BUFFERSIZE.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.22% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6ff265fc5ef660499e0edc4641647e99eed3f519, before 913a1876fbe9a168030013b9e6cb2746fe41fff4 affected from 6ff265fc5ef660499e0edc4641647e99eed3f519, before bfb0582708b3432919a8baaa3a65de5fdb1490ea affected from 6ff265fc5ef660499e0edc4641647e99eed3f519, before 2effbe746452c108188f85a6951f2b0b65653840 affected from 6ff265fc5ef660499e0edc4641647e99eed3f519, before 7a755f6d47b811d3abd93c1642ce5e63894540b8 affected from 6ff265fc5ef660499e0edc4641647e99eed3f519, before ec6b083915e8146e147314a5f4f1285d07b57bfc
Other versions: unaffected
|
| Linux |
affected 6.3 unaffected before 6.3 unaffected from 6.6.161 up to and including 6.6.* unaffected from 6.12.115 up to and including 6.12.* unaffected from 6.18.59 up to and including 6.18.* unaffected from 7.2.13 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-99157 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99157
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-99157
trivy image --scanners vuln IMAGE | grep CVE-2026-99157
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/913a1876fbe9a168030013b9e6cb2746fe41fff4 git.kernel.org
- https://git.kernel.org/stable/c/bfb0582708b3432919a8baaa3a65de5fdb1490ea git.kernel.org
- https://git.kernel.org/stable/c/2effbe746452c108188f85a6951f2b0b65653840 git.kernel.org
- https://git.kernel.org/stable/c/7a755f6d47b811d3abd93c1642ce5e63894540b8 git.kernel.org
- https://git.kernel.org/stable/c/ec6b083915e8146e147314a5f4f1285d07b57bfc git.kernel.org
Source: the record CVE-2026-99157 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