Kernel-data disclosure via failed firmware command copy
Published May 1, 2026 · Updated May 1, 2026
Out-of-bounds read in the CCP SEV driver in Linux Kernel allows local users to read kernel data via a SEV_GET_ID2 ioctl. The sev_ioctl_do_get_id2 function uses the firmware-reported data length in copy_to_user even when the PSP command fails, reading beyond the allocated ID buffer. Exploitation requires local low-privileged access and an undersized userspace buffer that causes firmware rejection; returned bytes can include adjacent kernel-heap data.
Summary
What happened
Out-of-bounds read in the CCP SEV driver in Linux Kernel allows local users to read kernel data via a SEV_GET_ID2 ioctl. The sev_ioctl_do_get_id2 function uses the firmware-reported data length in copy_to_user even when the PSP command fails, reading beyond the allocated ID buffer. Exploitation requires local low-privileged access and an undersized userspace buffer that causes firmware rejection; returned bytes can include adjacent kernel-heap data.
The record
- CVE
- CVE-2026-31697
- Published
- May 1, 2026
- Updated
- May 1, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-787
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 1, 2026CVE publishedPublication date reported by the CVE source.
- May 1, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.2
- Affected versionversion=d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <06f06d88c05ce176c61fff8c72c372847b0dd2b5
- Affected versionversion=d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <09427bcb1715fb20a80b6acd5156dbf15ab5c363
- Affected versionversion=d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <1fbac0429a42adec830491757a2b53956dd797ea
- Affected versionversion=d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <2937f17bbeefb8e7608ff1f78cffbeb3d0281e5e
- Affected versionversion=d6112ea0cb344d6f5ed519991e24f69ba4b43d0e <4f685dbfa87c546e51d9dc6cab379d20f275e114
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo