# CVE-2026-98232: scsi: core: Validate MODE SENSE lengths in scsi\_cdl\_enable()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-06T08:45:05.848Z
- **Modified:** 2026-10-19T10:18:23.997Z

## Who should check

- Anyone running Linux \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 39491a1ae93054fea10b4030180e5c797b2c0343; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 6233d0b3ef4623df0d6934dc8b93b161e9854f6b; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 99a6e4a9176da456904b67dcbae6e77d122782b7; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 3d676e458fe0c566f5a62753dc696b6a862fc412
- Anyone running Linux 6.5

## Description

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

scsi: core: Validate MODE SENSE lengths in scsi\_cdl\_enable()

scsi\_cdl\_enable() uses length fields returned by MODE SENSE to locate
the ATA feature mode page in a 64-byte stack buffer. A target can report
a total length shorter than its mode header and block descriptors. The
unsigned subtraction used for the MODE SELECT length can wrap, and the
separately computed buf\_data can point beyond buf.

During automatic scan, enable is false, so the read-modify-write of
buf\_data\[4\] can clear the low two bits of a target-selected
out-of-bounds stack byte. scsi\_mode\_select() can then copy up to 64
bytes from outside the buffer into the outgoing MODE SELECT payload,
disclosing stack contents to the target.

This is reachable while scanning a USB storage device that identifies as
an ATA device and advertises CDL support. No filesystem mount or
userspace access to the block device is required.

On upstream commit cee9395acd80 ("Linux 7.3-rc1"), a build-specific,
one-vCPU QEMU/Raw Gadget proof using QEMU-only multi-UDC allocator
sampling executed a fixed proof command inside the guest and created a
UID-0-owned marker during automatic enumeration, with KASLR and NX
enabled.

The issue was independently found during security research at Drivesec
S.r.l.

Cap the available length to the buffer size. Validate and consume the
mode header and block descriptor lengths before using the page, and
require the five bytes needed to access the CDL field.

## Affected and fixed versions

- Linux: \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 39491a1ae93054fea10b4030180e5c797b2c0343; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 6233d0b3ef4623df0d6934dc8b93b161e9854f6b; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 99a6e4a9176da456904b67dcbae6e77d122782b7; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 3d676e458fe0c566f5a62753dc696b6a862fc412 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 3d676e458fe0c566f5a62753dc696b6a862fc412 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-98232. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98232.md
Affected: Linux >= 1b22cfb14142aba7742d307c4f8d7006f919308c, < 39491a1ae93054fea10b4030180e5c797b2c0343; >= 1b22cfb14142aba7742d307c4f8d7006f919308c, < 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4; >= 1b22cfb14142aba7742d307c4f8d7006f919308c, < 6233d0b3ef4623df0d6934dc8b93b161e9854f6b; >= 1b22cfb14142aba7742d307…
Fixed in: Linux 39491a1ae93054fea10b4030180e5c797b2c0343, Linux 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4, Linux 6233d0b3ef4623df0d6934dc8b93b161e9854f6b, Linux 99a6e4a9176da456904b67dcbae6e77d122782b7, Linux 3d676e458fe0c566f5a62753dc696b6a862fc412

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-98232 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 39491a1ae93054fea10b4030180e5c797b2c0343; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 6233d0b3ef4623df0d6934dc8b93b161e9854f6b; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 99a6e4a9176da456904b67dcbae6e77d122782b7; \>= 1b22cfb14142aba7742d307c4f8d7006f919308c, \< 3d676e458fe0c566f5a62753dc696b6a862fc412; Linux 6.5.

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

Yes. Fixed in Linux 39491a1ae93054fea10b4030180e5c797b2c0343, Linux 60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4, Linux 6233d0b3ef4623df0d6934dc8b93b161e9854f6b, Linux 99a6e4a9176da456904b67dcbae6e77d122782b7, Linux 3d676e458fe0c566f5a62753dc696b6a862fc412. Upgrade Linux to 3d676e458fe0c566f5a62753dc696b6a862fc412 or later.

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

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/39491a1ae93054fea10b4030180e5c797b2c0343>
- other: <https://git.kernel.org/stable/c/60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4>
- other: <https://git.kernel.org/stable/c/6233d0b3ef4623df0d6934dc8b93b161e9854f6b>
- other: <https://git.kernel.org/stable/c/99a6e4a9176da456904b67dcbae6e77d122782b7>
- other: <https://git.kernel.org/stable/c/3d676e458fe0c566f5a62753dc696b6a862fc412>

## 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-98232>

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