# CVE-2026-99156: scsi: st: Fix use-after-free race between st\_remove() and st\_open()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-26)
- **Published:** 2026-10-28T10:35:10.493Z
- **Modified:** 2026-10-31T13:17:57.963Z

## Who should check

- Anyone running Linux \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 7d7f9d2ee4b0841f3eba9fa3627044ad329428de; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< d9517fc39ec3ee13eadefdc17f45300f7d23ed8c; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 00ff1128123d4bdfacd28d68fb4b6e6f657a3648; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 5ef230f734e0d23db007c8405f38b7e226740084; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< a1647b653549ff29f0422a63eabf329b842f3822; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 18a0e3733ce38718688e813e5e2d1106bd4830e5; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 71caf7f84bd62a4bf91cc95abd2de690afb8d15f
- Anyone running Linux 3.7

## 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().

## Affected and fixed versions

- Linux: \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 7d7f9d2ee4b0841f3eba9fa3627044ad329428de; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< d9517fc39ec3ee13eadefdc17f45300f7d23ed8c; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 00ff1128123d4bdfacd28d68fb4b6e6f657a3648; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 5ef230f734e0d23db007c8405f38b7e226740084; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< a1647b653549ff29f0422a63eabf329b842f3822; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 18a0e3733ce38718688e813e5e2d1106bd4830e5; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 71caf7f84bd62a4bf91cc95abd2de690afb8d15f (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 71caf7f84bd62a4bf91cc95abd2de690afb8d15f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99156. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99156.md
Affected: Linux >= 6c648d95a6af4a79241a916871df17c84c68ea20, < 7d7f9d2ee4b0841f3eba9fa3627044ad329428de; >= 6c648d95a6af4a79241a916871df17c84c68ea20, < d9517fc39ec3ee13eadefdc17f45300f7d23ed8c; >= 6c648d95a6af4a79241a916871df17c84c68ea20, < e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7; >= 6c648d95a6af4a79241a916…
Fixed in: Linux 7d7f9d2ee4b0841f3eba9fa3627044ad329428de, Linux 00ff1128123d4bdfacd28d68fb4b6e6f657a3648, Linux 5ef230f734e0d23db007c8405f38b7e226740084, Linux 18a0e3733ce38718688e813e5e2d1106bd4830e5, Linux 71caf7f84bd62a4bf91cc95abd2de690afb8d15f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99156 being exploited?

There is no confirmed exploitation: CVE-2026-99156 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99156?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99156?

Linux \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 7d7f9d2ee4b0841f3eba9fa3627044ad329428de; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< d9517fc39ec3ee13eadefdc17f45300f7d23ed8c; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 00ff1128123d4bdfacd28d68fb4b6e6f657a3648; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 5ef230f734e0d23db007c8405f38b7e226740084; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< a1647b653549ff29f0422a63eabf329b842f3822; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 18a0e3733ce38718688e813e5e2d1106bd4830e5; \>= 6c648d95a6af4a79241a916871df17c84c68ea20, \< 71caf7f84bd62a4bf91cc95abd2de690afb8d15f; Linux 3.7.

### Is there a fix for CVE-2026-99156?

Yes. Fixed in Linux 7d7f9d2ee4b0841f3eba9fa3627044ad329428de, Linux 00ff1128123d4bdfacd28d68fb4b6e6f657a3648, Linux 5ef230f734e0d23db007c8405f38b7e226740084, Linux 18a0e3733ce38718688e813e5e2d1106bd4830e5, Linux 71caf7f84bd62a4bf91cc95abd2de690afb8d15f. Upgrade Linux to 71caf7f84bd62a4bf91cc95abd2de690afb8d15f or later.

### How do I check if I'm affected by CVE-2026-99156?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/7d7f9d2ee4b0841f3eba9fa3627044ad329428de>
- other: <https://git.kernel.org/stable/c/d9517fc39ec3ee13eadefdc17f45300f7d23ed8c>
- other: <https://git.kernel.org/stable/c/e7a5da4a4820210aa7d7cd8e6eb25aabe9e5b5a7>
- other: <https://git.kernel.org/stable/c/00ff1128123d4bdfacd28d68fb4b6e6f657a3648>
- other: <https://git.kernel.org/stable/c/5ef230f734e0d23db007c8405f38b7e226740084>
- other: <https://git.kernel.org/stable/c/a1647b653549ff29f0422a63eabf329b842f3822>
- other: <https://git.kernel.org/stable/c/18a0e3733ce38718688e813e5e2d1106bd4830e5>
- other: <https://git.kernel.org/stable/c/71caf7f84bd62a4bf91cc95abd2de690afb8d15f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99156>

HTML: <https://flawdb.com/CVE-2026-99156> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99156>
