keys: Protect the type name while describing a key

Summary

CVECVE-2026-99224
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-02 16:17:46 UTC
Updated2026-11-03 20:18:27 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: keys: Protect the type name while describing a key keyctl_describe_key() must keep the key type's name alive until kasprintf() has consumed it. The retained key reference keeps the key and its description alive, but does not pin the module providing its type. The name is passed to kasprintf() without holding key->sem. kvasprintf() uses the saved name pointer in two formatting passes, with a GFP_KERNEL allocation between them. With AF_RXRPC=m, a task that passes View permission before type retirement can overlap a privileged module unload in this order: 1. KEYCTL_DESCRIBE looks up the key, saves key->type->name in the kasprintf() arguments and completes the first formatting pass. 2. While the formatter is delayed before its second pass, af_rxrpc_exit() calls unregister_key_type(), which removes the type from the registry and waits for key_gc_keytype(). 3. The collector takes key->sem for writing, retypes the retained key to key_type_dead and completes retirement. Unregistration and module exit return, allowing free_module() to release the type and name. 4. The formatter resumes its second pass and reads the saved name from released module storage, which can fault in string(). Hold key->sem for reading across kasprintf(). The collector then cannot retype the key or complete retirement until both formatting passes have finished. If retirement wins the lock first, formatting uses the core key_type_dead name instead. Release the semaphore immediately after kasprintf(), including on allocation failure, before copying to userspace. Oops report as below: BUG: unable to handle page fault for address: fffffbfff8054794 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page RIP: 0010:string+0x23f/0x470 Call Trace: vsnprintf+0x330/0x1110

Risk And Classification

Primary CVSS: v3.1 7 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

EPSS: 0.001140000 probability, percentile 0.014550000 (date 2026-11-03)


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 19c4de819e52b7f606468fbfe4fcef4e812e2777 git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 a49e6c9a1a5b3457c946a8efb616ce13b4ca8194 git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 916667df7695366f23cfaf365b5840b228cc4b2e git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 dddd3a1ab7d12ee163477918ff6eb943361db4fe git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 3c3cfd9e262afc9558c38f8cec57f09d10988546 git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 6b613747f7ea309ada5b8d05b55398c338f7a968 git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 dea367df18e3a4faac393e3a4e818ee03af89b19 git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 0461bc8f91116aae4a020e15f4e1c1fd535ab35e git Not specified
CNA Linux Linux affected aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 fced7238b7e80cf8aa688d5af976e4aa6e33c329 git Not specified
CNA Linux Linux affected 3.18 Not specified
CNA Linux Linux unaffected 3.18 semver Not specified
CNA Linux Linux unaffected 5.10.273 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.224 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.191 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.161 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.115 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.60 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.14 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3.1 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/19c4de819e52b7f606468fbfe4fcef4e812e2777 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fced7238b7e80cf8aa688d5af976e4aa6e33c329 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6b613747f7ea309ada5b8d05b55398c338f7a968 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3c3cfd9e262afc9558c38f8cec57f09d10988546 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dddd3a1ab7d12ee163477918ff6eb943361db4fe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dea367df18e3a4faac393e3a4e818ee03af89b19 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/916667df7695366f23cfaf365b5840b228cc4b2e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0461bc8f91116aae4a020e15f4e1c1fd535ab35e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a49e6c9a1a5b3457c946a8efb616ce13b4ca8194 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report