CVE-2026-139337: ima: reject a kexec buffer whose declared size exceeds the buffer
ima: reject a kexec buffer whose declared size exceeds the buffer
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
On the IMA kexec-restore path, reject the buffer before parsing if khdr->buffer_size exceeds the actual buffer size.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's IMA measurement-list restoration during boot after kexec are exposed when they consume a persisted ima-kexec-buffer. The affected code runs only on the boot-time kexec-restore path.
What must an attacker control to trigger the out-of-bounds read?
The persisted measurement-list blob must contain a declared buffer_size larger than the actual ima-kexec-buffer region obtained by the kernel. The parser otherwise checks the header size, version, and count, but did not compare the declared size with the actual buffer size.
How can this be mitigated if the fix cannot be deployed immediately?
The provided data identifies the vulnerable path as IMA restoration from a prior kernel's kexec buffer. Avoiding or disabling use of that kexec restore path prevents processing the malformed persisted buffer, but no specific configuration-level mitigation is provided.