CVE-2026-99156

scsi: st: Fix use-after-free race between st_remove() and st_open()

7.8 high EPSS 0.16%

Published 28 Oct 2026 Updated 31 Oct 2026 CNA: Linux

Check your servers for CVE-2026-99156

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-99156 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.

Check my servers

Description

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

scsi: st: Fix use-after-free race between st_remove() and st_open()

st_remove() drops the probe reference on the scsi_tape with kref_put() and only afterwards removes its index from st_index_idr. If that was the last reference, scsi_tape_release() frees the structure while it is still published in the idr.

scsi_tape_get(), called from st_open(), looks up the tape in st_index_idr and takes a reference under st_ref_mutex and st_index_lock. remove_cdevs() does not wait for opens that are already past chrdev_open(), so an open that is blocked on st_ref_mutex while st_remove() holds it can take the mutex as soon as st_remove() drops it, find the freed tpnt in the idr and call kref_get() on it:

BUG: KASAN: slab-use-after-free in st_open Write of size 4 ... st_open (drivers/scsi/st.c:254 drivers/scsi/st.c:1291) chrdev_open ... Freed by task ...: kfree st_remove (drivers/scsi/st.c:4512)

Remove the index from the idr before dropping the reference, all under st_ref_mutex. A concurrent scsi_tape_get() now either runs first and holds a valid reference that keeps the tape alive, or runs afterwards and finds nothing, so st_open() fails with -ENXIO.

This restores the ordering st_remove() had before the conversion to st_index_idr, where the tape was unpublished from scsi_tapes[] before the final kref_put().

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
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.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.17% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before 7d7f9d2ee4b0841f3eba9fa3627044ad329428de
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before d9517fc39ec3ee13eadefdc17f45300f7d23ed8c
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before 00ff1128123d4bdfacd28d68fb4b6e6f657a3648
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before 5ef230f734e0d23db007c8405f38b7e226740084
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before a1647b653549ff29f0422a63eabf329b842f3822
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before 18a0e3733ce38718688e813e5e2d1106bd4830e5
affected from 6c648d95a6af4a79241a916871df17c84c68ea20, before 71caf7f84bd62a4bf91cc95abd2de690afb8d15f
Other versions: unaffected
Linux
affected 3.7
unaffected before 3.7
unaffected from 5.10.273 up to and including 5.10.*
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
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-99156 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99156

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-99156
trivy image --scanners vuln IMAGE | grep CVE-2026-99156

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

Source: the record CVE-2026-99156 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.