KernelScan.io

HIGH Introduced in 6.8

nsm Response OOB Read

CVE-2026-89743

CVSS 7.7 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

KernelScan AI3.3LOW

01

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.

02

Engine v0.6.0

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.

Affecteddrivers/misc/nsm.c (Nitro Secure Module driver)

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.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.109339f19b9a617
6.186.86.18.5029e634a18957
7.26.87.2.42aa0fb9c96f8
mainline6.87.3808e530654a5
cip/6.126.86.12.111-cip32339f19b9a617

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32