{"id":"CVE-2022-49732","summary":"sock: redo the psock vs ULP protection check","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsock: redo the psock vs ULP protection check\n\nCommit 8a59f9d1e3d4 (\"sock: Introduce sk-\u003esk_prot-\u003epsock_update_sk_prot()\")\nhas moved the inet_csk_has_ulp(sk) check from sk_psock_init() to\nthe new tcp_bpf_update_proto() function. I'm guessing that this\nwas done to allow creating psocks for non-inet sockets.\n\nUnfortunately the destruction path for psock includes the ULP\nunwind, so we need to fail the sk_psock_init() itself.\nOtherwise if ULP is already present we'll notice that later,\nand call tcp_update_ulp() with the sk_proto of the ULP\nitself, which will most likely result in the ULP looping\nits callbacks.","modified":"2026-04-02T08:27:53.044420Z","published":"2025-02-26T14:57:24.827Z","related":["SUSE-SU-2025:1176-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49732.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/72fa0f65b56605b8a9ae9fba2082f2123f7fe017"},{"type":"WEB","url":"https://git.kernel.org/stable/c/922309e50befb0cfa5cb65e4989b7706d6578846"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e34a07c0ae3906f97eb18df50902e2a01c1015b6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49732.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49732"},{"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":"8a59f9d1e3d4340659fdfee8879dc09a6f2546e1"},{"fixed":"72fa0f65b56605b8a9ae9fba2082f2123f7fe017"},{"fixed":"922309e50befb0cfa5cb65e4989b7706d6578846"},{"fixed":"e34a07c0ae3906f97eb18df50902e2a01c1015b6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49732.json"}}],"schema_version":"1.7.5"}