CVE-2026-138940 in Linux
Summary
by MITRE • 11/30/2026
In the Linux kernel, the following vulnerability has been resolved:
pseries/plpks: clear sensitive PLPKS buffers
PLPKS read, remove, and write operations use authentication buffers that contain passwords. The read output buffer may also contain sensitive data. Freeing these buffers with kfree(), without wiping the contents, can leave sensitive data in memory.
Use kfree_sensitive() to wipe the buffers when freeing them.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/30/2026
The Linux kernel vulnerability identified within the pseries/plpks subsystem represents a critical information disclosure risk stemming from improper handling of cryptographic material and authentication credentials. The Platform Level Power Key Storage, or PLPKS, is responsible for managing keys used in secure boot processes and other hardware-backed security mechanisms on IBM POWER systems. These operations involve reading, removing, and writing sensitive data such as passwords and private key components to and from protected storage areas that are often backed by hardware security modules like the OP-TEE trusted execution environment or similar firmware-based solutions. The core technical flaw lies in how memory buffers containing these secrets are deallocated after use. Specifically, when operations complete, the kernel frees the associated memory using the standard kfree() function. While this action returns the physical pages to the system’s free pool for reuse by other processes or kernel subsystems, it fails to overwrite the contents of those pages with zeros or random data before release.
This oversight creates a window of opportunity for attackers who have gained access to volatile memory through various attack vectors such as cold boot attacks, DMA-based extraction, or exploitation of local privilege escalation vulnerabilities that allow reading arbitrary physical memory regions. Because modern operating systems frequently reuse freed memory blocks without clearing them first, any sensitive data previously stored in those buffers remains intact until it is overwritten by new allocations. This means that passwords used for authenticating to the PLPKS service, private keys generated or retrieved during secure boot validation, and other cryptographic secrets can potentially be recovered from RAM even after they are no longer actively referenced by the kernel code. The impact of this vulnerability extends beyond simple credential theft; it compromises the integrity of the entire chain of trust established by platform-level key storage mechanisms. If an attacker retrieves these keys or passwords, they may bypass secure boot protections, impersonate legitimate services during authentication exchanges, or decrypt previously secured communications that relied on PLPKS-managed keys for protection.
From a standards perspective, this vulnerability aligns with CWE-243, which describes the creation of a Critical State in an Incorrect Context where sensitive data is left exposed due to improper cleanup procedures. It also relates closely to CWE-798, involving the use of hardcoded or weak credentials if those recovered secrets are reused elsewhere, and CWE-1056, concerning the writing of sensitive information into log files or other insecure storage locations when memory dumps occur during crashes. In terms of MITRE ATT&CK mapping, this flaw facilitates techniques associated with Tactic 1089, specifically Link Detection via Memory Dumping (T1005), where adversaries extract data from local systems by reading volatile memory contents that were not properly sanitized before deallocation. The failure to clear sensitive buffers violates fundamental principles of secure coding practices outlined in standards such as the OWASP Secure Coding Practices Guide and NIST SP 800-53, which mandate strict controls over information output and disposal of sensitive data.
Mitigation for this issue requires immediate patching of the Linux kernel on affected pseries platforms to ensure that all buffers containing PLPKS-related secrets are cleared before being returned to the memory allocator. The resolution involves replacing calls to kfree() with kfree_sensitive(), a specialized function designed specifically for handling cryptographic material and authentication credentials by overwriting the buffer contents with random data or zeros prior to freeing the underlying physical pages. This ensures that even if an attacker gains access to raw memory dumps, they will not find usable secrets in previously allocated regions. Administrators should also consider implementing additional hardening measures such as enabling kernel page table isolation where applicable, restricting direct memory access through IOMMU configurations, and monitoring for unusual patterns of memory allocation or DMA activity that might indicate exploitation attempts while patches are being deployed across the infrastructure environment.