VDB

CVE-2026-98232

CVE-2026-98232 PUBLISHED

scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()

Reported by linux · Published October 6, 2026

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.

EPSS 0.17% · 6.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-64k-debug-moduleserrata.rockylinux.org0:5.14.0-741.24.1.el9_9.aarch64
perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel-debug-modules-extraerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.s390x, 0:5.14.0-741.24.1.el9_9.ppc64le, 0:5.14.0-741.24.1.el9_9.aarch64
kernel-modules-coreerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-741.24.1.el9_9.aarch64
libperferrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64
kernel-debuginfoerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-741.24.1.el9_9.ppc64le
kernel6.12-toolsAmazon Linux1:6.12.113-138.209.amzn2023
kernel-64k-debug-debuginfoerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.aarch64
kernel-rt-debug-modules-extraerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-741.24.1.el9_9.aarch64
microvm-kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel-rt-coreerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-741.24.1.el9_9.aarch64
python3-perf-debuginfoerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-741.24.1.el9_9.ppc64le

56 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.17%
6.1th percentile

Affected products

VendorProductVersions
LinuxLinux1b22cfb14142aba7742d307c4f8d7006f919308c, 1b22cfb14142aba7742d307c4f8d7006f919308c, 1b22cfb14142aba7742d307c4f8d7006f919308c
LinuxLinux6.5, 0, 6.6.158
amazon:2023perf6.180
amazon:2023kernel6.12-tools0
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-tools-devel0
amazon:2023perf6.120
amazon:2023kernel6.18-modules-extra-common0
amazon:2023python3-perf6.180
amazon:2023bpftool6.120
amazon:2023kernel6.12-tools-devel0
LinuxLinux1b22cfb14142aba7742d307c4f8d7006f919308c, 7.3, 7.2.8
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023python3-perf6.120
LinuxLinux
amazon:2023kernel6.18-headers0
amazon:2023kernel6.120

…and 8 more

Timeline

  • Oct 6, 2026 EPSS Score (5 in total, the first dated here)
  • Oct 6, 2026 Coalition ESS Score
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated
  • Nov 22, 2026 Distribution Patch
  • Nov 22, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98232
vulnetix vdb fixes CVE-2026-98232

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98232/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›