unshare: don't drop active namespace references that were never taken
In the Linux kernel, the following vulnerability has been resolved: unshare: don't drop active namespace references that were never taken Active references on the namespaces of an nsproxy are taken when the nsproxy is installed into a task in switch_task_namespaces() and copy_namespaces() and dropped again by put_nsproxy() through deactivate_nsproxy(). But ksys_unshare() calls put_nsproxy() on an nsproxy that was never installed when set_cred_ucounts() fails. The new namespaces of that nsproxy go from zero to minus one and the namespaces shared with the caller lose a reference that belongs to the nsproxy the caller keeps using: WARNING:
- Mettez à jour vers 5.16
- Mettez à jour vers 6.13
- Mettez à jour vers 6.19
- Mettez à jour vers 6.2
- Mettez à jour vers 6.7
- Mettez à jour vers 7.1
- Mettez à jour vers 7.2.11-1