CVE-2026-139649: crypto: asymmetric_keys/x509 - copy X.509 TBS for data signature algorithms
crypto: asymmetrickeys/x509 - copy X.509 TBS for data signature algorithms
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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
In Linux kernel X.509 signature handling, give the signature object its own copy of the TBSCertificate (TBS) for signature algorithms that operate on a message rather than a digest, and release that copy through the existing m_free contract.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The issue requires an X.509 certificate using a signature algorithm that operates on the message rather than a precomputed digest, such as ML-DSA. After the certificate is added with add_key(), a later KEYCTL_LINK operation into an asymmetric restricted keyring can cause verification to use the stale pointer.
Which systems are most likely exposed?
Systems that add X.509 keys using message-based signature algorithms and subsequently link those keys into asymmetric restricted keyrings are exposed to this path. The provided information does not establish whether common default kernel or keyring configurations perform these operations.
How could this appear during diagnosis?
With KASAN enabled, the condition may be reported as a slab use-after-free in mldsa_verify(). The allocation and free provenance both lead to __do_sys_add_key().
What is the security impact beyond a crash?
Freed memory can be reused before verification, causing bytes from the reused object to be treated as the authenticated certificate message rather than the certificate's own TBSCertificate. This creates an integrity risk in addition to the use-after-free.