CVE-2026-139064

ipc/mqueue: release notification resources during inode eviction

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ipc/mqueue: release notification resources during inode eviction

mqueue_flush_file() removes an mq_notify() registration only when the
closing task belongs to the thread group stored in notify_owner.

A task in a separate thread group created with CLONE_FILES can register
SIGEV_THREAD notification and exit without closing the shared file table.
If another thread group then unlinks and last-closes the queue, ->flush()
skips the registration and inode eviction loses the only pointers to its
resources.

The orphaned registration permanently retains the notification skb, its
netlink socket, a pid reference and a user namespace reference. An
unprivileged process can repeat the sequence with new queues and sockets.

No inode users remain during eviction. Remove any stale registration there
after dropping info->lock, since netlink_sendskb() may release the final
socket reference.

Analysis

AI-generated

Technical impact

The kernel function mqueue_flush_file() fails to remove a mq_notify() registration when the closing task is not from the original thread group that registered it. This oversight allows an unprivileged process to register a SIGEV_THREAD notification on a message queue, exit without closing the file descriptor, and leave orphaned notification resources. Subsequent eviction of the queue’s inode skips cleanup, retaining pointers to notification skbs, netlink sockets, PID references, and user namespace references. The leaking resources can accumulate indefinitely, exhausting kernel memory, sockets, or other restricted kernel objects, which can lead to denial of service.

Affected Systems

The vulnerability is present in the Linux kernel. No specific kernel releases are listed in the advisory, so any kernel version that includes the faulty mqueue_flush_file() logic is vulnerable until the fix is applied. Users of recent stable kernels should verify that the patch incorporating this fix has been merged.

Risk and Exploitability

The exploit does not require elevated privileges and relies on creating multiple message queues and registering notifications. However, no EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited known exploitation. The risk therefore hinges on the attacker’s ability to repeatedly create queues, which could lead to resource exhaustion over time but lacks evidence of a quick, high-impact exploit. Nonetheless, the potential for denial of service warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the mqueue_flush_file fix, as released in recent stable kernels.
  • Ensure that no orphaned message queues remain by checking system processes for lingering mq_notify registrations or by applying kernel configuration changes that prevent unnamed or orphaned notifications if available.
  • Monitor system resource usage for abnormal accumulation of netlink sockets or kernel memory usage that might indicate exploitation of this flaw.

Generated by OpenCVE AI on November 30, 2026 at 18:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ipc/mqueue: release notification resources during inode eviction mqueue_flush_file() removes an mq_notify() registration only when the closing task belongs to the thread group stored in notify_owner. A task in a separate thread group created with CLONE_FILES can register SIGEV_THREAD notification and exit without closing the shared file table. If another thread group then unlinks and last-closes the queue, ->flush() skips the registration and inode eviction loses the only pointers to its resources. The orphaned registration permanently retains the notification skb, its netlink socket, a pid reference and a user namespace reference. An unprivileged process can repeat the sequence with new queues and sockets. No inode users remain during eviction. Remove any stale registration there after dropping info->lock, since netlink_sendskb() may release the final socket reference.
Title ipc/mqueue: release notification resources during inode eviction
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM