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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 96fa3e879a6c0a39a7d208c796dd25d1a32e5a78affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ca7a2fdb589fb228c64feec9e9749214476296f0affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1e0d1f3f7e43bc47e421887da38f9a3e51f6449aaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d7155ac49c75e9b0ccf4788efc07763a8d99fe1eaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7fbc41dd8a3aaf620829f5875c9693e0ee905306affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 58291947b70a132144e1ed6fd6a4d9e043061a34affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < abdce0f17b8b6c2adff399fd79929bab584b436eaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < eb85469f0dd69ca145d63117450e14c31f67f698affected
Linux Linux
Default version status: affected
2.6.12affected0 to < 2.6.12unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.117 to ≤ 6.12.*unaffected6.18.63 to ≤ 6.18.*unaffected7.3.4 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/96fa3e879a6c0a39a7d208c796dd25d1a32e5a78 ↗
- https://git.kernel.org/stable/c/ca7a2fdb589fb228c64feec9e9749214476296f0 ↗
- https://git.kernel.org/stable/c/1e0d1f3f7e43bc47e421887da38f9a3e51f6449a ↗
- https://git.kernel.org/stable/c/d7155ac49c75e9b0ccf4788efc07763a8d99fe1e ↗
- https://git.kernel.org/stable/c/7fbc41dd8a3aaf620829f5875c9693e0ee905306 ↗
- https://git.kernel.org/stable/c/58291947b70a132144e1ed6fd6a4d9e043061a34 ↗
- https://git.kernel.org/stable/c/abdce0f17b8b6c2adff399fd79929bab584b436e ↗
- https://git.kernel.org/stable/c/eb85469f0dd69ca145d63117450e14c31f67f698 ↗