{"id":"CVE-2026-45966","published":"2026-05-27T12:18:24Z","modified":"2026-05-27T12:18:24Z","title":"apparmor: fix NULL pointer dereference in __unix_needs_revalidation","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix NULL pointer dereference in __unix_needs_revalidation\n\nWhen receiving file descriptors via SCM_RIGHTS, both the socket pointer\nand the socket's sk pointer can be NULL during socket setup or teardown,\ncausing NULL pointer dereferences in __unix_needs_revalidation().\n\nThis is a regression in AppArmor 5.0.0 (kernel 6.17+) where the new\n__unix_needs_revalidation() function was added without proper NULL checks.\n\nThe crash manifests as:\n  BUG: kernel NULL pointer dereference, address: 0x0000000000000018\n  RIP: aa_file_perm+0xb7/0x3b0 (or +0xbe/0x3b0, +0xc0/0x3e0)\n  Call Trace:\n   apparmor_file_receive+0x42/0x80\n   security_file_receive+0x2e/0x50\n   receive_fd+0x1d/0xf0\n   scm_detach_fds+0xad/0x1c0\n\nThe function dereferences sock->sk->sk_family without checking if either\nsock or sock->sk is NULL first.\n\nAdd NULL checks for both sock and sock->sk before accessing sk_family.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00121,"percentile":0.01869,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/fea017a7f6abe179decf575a2d8464c74edb3964","tags":[]},{"url":"https://git.kernel.org/stable/c/e85bc9101afc4202aa2269967ce9d3ffbecd0994","tags":[]},{"url":"https://git.kernel.org/stable/c/e2938ad00b21340c0362562dfedd7cfec0554d67","tags":[]}],"priority":{"score":0.4,"factors":[{"name":"EPSS percentile","points":0.37}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 88fec3526e84123997ecebd6bb6778eb4ce779b7, < fea017a7f6abe179decf575a2d8464c74edb3964",">= 88fec3526e84123997ecebd6bb6778eb4ce779b7, < e85bc9101afc4202aa2269967ce9d3ffbecd0994",">= 88fec3526e84123997ecebd6bb6778eb4ce779b7, < e2938ad00b21340c0362562dfedd7cfec0554d67"]},{"vendor":"Linux","product":"Linux","versions":["6.17"]}],"euvd":{"id":"EUVD-2026-32250","exploited":false,"provenance":"source"}}