HIGH Introduced in 6.8
nsm Response OOB Read
CVE-2026-89743
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
KernelScan AI3.3LOW
01Description
In the Linux kernel, the following vulnerability has been resolved: misc: nsm: bound the device-reported response length nsm_sendrecv_msg_locked() stores the virtqueue used-ring length reported by the NSM device into msg->resp.len without bounding it to the response buffer. A malicious or buggy backend can report a length larger than the response buffer; parse_resp_raw() then copies that many bytes out of the fixed buffer to user space, disclosing adjacent kernel heap (an out-of-bounds read). The request path already floors its length in fill_req_raw(); the response path lacks the symmetric check. Clamp the stored length to the size of the response buffer. Well-behaved devices report no more than the posted buffer size, so conforming traffic is unaffected.
02KernelScan AI Analysis
Risk summary
A malicious or buggy NSM virtio backend can report a response length exceeding the kernel's fixed response buffer, causing an out-of-bounds read that discloses adjacent kernel heap memory to userspace. This affects Nitro Enclave environments where the NSM device is present. The exposure is limited to information disclosure with no integrity or availability impact.
Vulnerability analysis
The NSM driver stores the virtqueue response length reported by the device backend without checking it against the size of the kernel's fixed response buffer. When userspace later reads the response, the driver copies the device-reported number of bytes from that buffer, which can exceed its actual size and leak adjacent kernel heap memory. The fix clamps the stored length to the response buffer size so only valid bytes are ever copied out. The vulnerable path is reachable from inside a Nitro Enclave guest that has the NSM virtio device, by any process with access to the /dev/nsm device node; exploitation requires a malicious or compromised hypervisor backend that returns an oversized length.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.8 | 6.12.109 | 339f19b9a617 |
| 6.18 | 6.8 | 6.18.50 | 29e634a18957 |
| 7.2 | 6.8 | 7.2.4 | 2aa0fb9c96f8 |
| mainline | 6.8 | 7.3 | 808e530654a5 |
| cip/6.12 | 6.8 | 6.12.111-cip32 | 339f19b9a617 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |