Description
In 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
Published: 2026-11-02
Score: 7 High
EPSS: n/a
KEV: No
Impact: Kernel crash due to use‑after‑free in keyctl_describe_key
Action: Apply patch
AI Analysis

Impact

The flaw occurs when keyctl_describe_key formats a key's description. During the first formatting pass the name of the key type is copied into the argument buffer without holding the key's semaphore. If, while the formatter waits for a second pass, the module providing that key type unloads, the key type’s name can be freed. The formatter then continues with the second pass and reads the now‑invalid name, triggering a page fault and crashing the kernel. This use‑after‑free can cause a denial of service.

Affected Systems

All Linux kernels that include the keys subsystem and can load the AF_RXRPC module are potentially affected. The vendor is Linux, product Linux Kernel. No specific kernel version range is listed, so any installation prior to the patch commit that introduced the fix is vulnerable. Users running kernels that still reference the vulnerable keyctl_describe_key implementation are at risk.

Risk and Exploitability

The CVSS score of 7 indicates high severity, and the EPSS score is not available, suggesting that no widespread exploitation has been observed yet. The vulnerability is not listed in the CISA KEV catalog. Because the fault occurs in kernel context and involves module unloading, remote exploitation is unlikely; however, any local privileged user or administrator can trigger the fault by combining a keyctl DESCRIBE call with unloading a module that registers a key type.

Generated by OpenCVE AI on November 2, 2026 at 18:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest release that contains the patch for keyctl_describe_key (commit 0461bc8f9x).
  • If updating is not immediately possible, disable the AF_RXRPC kernel module to prevent the module unload sequence that triggers the fault.
  • If disabling AF_RXRPC is not feasible, restrict access to the keyctl DESCRIBE system call for unprivileged users or enforce SELinux/AppArmor rules to block unauthorized usage.

Generated by OpenCVE AI on November 2, 2026 at 18:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Mon, 02 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
Description In 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
Title keys: Protect the type name while describing a key
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-11-02T16:06:34.014Z

Reserved: 2026-09-25T10:25:14.402Z

Link: CVE-2026-99224

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-02T16:17:46.830

Modified: 2026-11-02T16:17:46.830

Link: CVE-2026-99224

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T18:30:17Z

Weaknesses

No weakness.