{"id":"CVE-2026-99201","summary":"netlink: avoid hashing the network namespace pointer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlink: avoid hashing the network namespace pointer\n\nThe netlink rhashtable key includes a raw struct net pointer and a\nuser-controlled port ID. Both /proc/net/netlink and socket diagnostics\nexpose the table's bucket order. By binding and rebinding chosen\nNETLINK_USERSOCK port IDs, an unprivileged reader can distinguish equal\nbuckets and recover the low bits of the Jenkins hash. Its 32-bit seed\nand the limited set of kernel-image slides can then be searched offline\nto recover the address of init_net.\n\nUse the namespace's unique, non-address net_cookie in the comparison\nkey instead. It is assigned before the per-net initializers run and\nremains unchanged for the namespace's lifetime. The lookup key and\nobject hash are still built by netlink_compare_arg_init(), keeping\nlookup, insertion, removal and rehashing consistent while preserving\nnamespace separation. Neither public table walker needs to change.\n\nReading the socket's namespace cookie in netlink_compare() is safe\nunder RCU, including during namespace teardown. netlink_release()\nremoves the socket from the hash table and defers its final put with\ncall_rcu(). cleanup_net() runs the per-net exit methods and waits for\noutstanding RCU callbacks with rcu_barrier() before freeing namespace\nstorage.\n\nUnlike ns.ns_id, net_cookie is also available and initialized during\nsetup_net() in older stable kernels, making the change straightforward\nto backport to v5.15 and later.","modified":"2026-11-01T02:30:53.097055030Z","published":"2026-10-28T10:35:56.069Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99201.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/078deff25f8a849ecd1c3fe17b1e473b1cf44f28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/18edcb9945118beb7a1b64a31a7370ecab485a79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41a2f69f091b0765f17890d8ac04852c12f25cf6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdd55b8a8acbf6b4840ab420eb6a63774bf4593b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c03fb9c4be3b2dd0996d91e54f65407f7f475238"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c61431f3b8c9824e9848a0308054f92b27fa7794"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f88bb3606e4bd11ee035b682cddc2999e604609a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f8d2690f3c5dfad1fc306f6d5d84a1d3176c3af9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99201.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99201"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c428ecd1a21f1457ca3beb4df71b8a079c410e41"},{"fixed":"c61431f3b8c9824e9848a0308054f92b27fa7794"},{"fixed":"f8d2690f3c5dfad1fc306f6d5d84a1d3176c3af9"},{"fixed":"c03fb9c4be3b2dd0996d91e54f65407f7f475238"},{"fixed":"41a2f69f091b0765f17890d8ac04852c12f25cf6"},{"fixed":"18edcb9945118beb7a1b64a31a7370ecab485a79"},{"fixed":"bdd55b8a8acbf6b4840ab420eb6a63774bf4593b"},{"fixed":"078deff25f8a849ecd1c3fe17b1e473b1cf44f28"},{"fixed":"f88bb3606e4bd11ee035b682cddc2999e604609a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99201.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"5.10.273"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.224"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.161"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.115"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.59"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99201.json"}}],"schema_version":"1.9.2"}