CVE-2026-139064: ipc/mqueue: release notification resources during inode eviction
In the Linux kernel, the following vulnerability has been resolved:
ipc/mqueue: release notification resources during inode eviction
mqueueflushfile() removes an mqnotify() registration only when the closing task belongs to the thread group stored in notifyowner.
A task in a separate thread group created with CLONEFILES can register SIGEVTHREAD 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 netlinksendskb() may release the final socket reference.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ipc/mqueue inode eviction, remove any stale mq_notify() registration after dropping info->lock so eviction releases its notification resources.