{"id":"CVE-2024-53091","state":"PUBLISHED","title":"bpf: Add sk_is_inet and IS_ICSK check in tls_sw_has_ctx_tx/rx","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Add sk_is_inet and IS_ICSK check in tls_sw_has_ctx_tx/rx\n\nAs the introduction of the support for vsock and unix sockets in sockmap,\ntls_sw_has_ctx_tx/rx cannot presume the socket passed in must be IS_ICSK.\nvsock and af_unix sockets have vsock_sock and unix_sock instead of\ninet_connection_sock. For these sockets, tls_get_ctx may return an invalid\npointer and cause page fault in function tls_sw_ctx_rx.\n\nBUG: unable to handle page fault for address: 0000000000040030\nWorkqueue: vsock-loopback vsock_loopback_work\nRIP: 0010:sk_psock_strp_data_ready+0x23/0x60\nCall Trace:\n ? __die+0x81/0xc3\n ? no_context+0x194/0x350\n ? do_page_fault+0x30/0x110\n ? async_page_fault+0x3e/0x50\n ? sk_psock_strp_data_ready+0x23/0x60\n virtio_transport_recv_pkt+0x750/0x800\n ? update_load_avg+0x7e/0x620\n vsock_loopback_work+0xd0/0x100\n process_one_work+0x1a7/0x360\n worker_thread+0x30/0x390\n ? create_worker+0x1a0/0x1a0\n kthread+0x112/0x130\n ? __kthread_cancel_work+0x40/0x40\n ret_from_fork+0x1f/0x40\n\nv2:\n  - Add IS_ICSK check\nv3:\n  - Update the commits in Fixes","publishedAt":"2024-11-21T18:17:08.357Z","updatedAt":"2026-10-30T12:20:00.071Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"e675829d287791dd90b70a9413fa7cfb8308830c","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"a078a480ff3f43d74d8a024ae10c3c7daf6db149","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"6781cfa93a6a1b7f5be6819a5a2dd8f30f47ca26","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"44d0469f79bd3d0b3433732877358df7dc6b17b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/tls.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.62","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.9","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/tls.h"]}],"references":["https://git.kernel.org/stable/c/e675829d287791dd90b70a9413fa7cfb8308830c","https://git.kernel.org/stable/c/a078a480ff3f43d74d8a024ae10c3c7daf6db149","https://git.kernel.org/stable/c/6781cfa93a6a1b7f5be6819a5a2dd8f30f47ca26","https://git.kernel.org/stable/c/44d0469f79bd3d0b3433732877358df7dc6b17b1"],"weaknesses":[],"ingestedAt":"2026-10-30T12:36:04.432Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/53xxx/CVE-2024-53091.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-53091","state":"PUBLISHED","datePublished":"2024-11-21T18:17:08.357Z","dateUpdated":"2026-10-30T12:20:00.071Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-11-19T17:17:24.981Z"},"containers":{"cna":{"title":"bpf: Add sk_is_inet and IS_ICSK check in tls_sw_has_ctx_tx/rx","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Add sk_is_inet and IS_ICSK check in tls_sw_has_ctx_tx/rx\n\nAs the introduction of the support for vsock and unix sockets in sockmap,\ntls_sw_has_ctx_tx/rx cannot presume the socket passed in must be IS_ICSK.\nvsock and af_unix sockets have vsock_sock and unix_sock instead of\ninet_connection_sock. For these sockets, tls_get_ctx may return an invalid\npointer and cause page fault in function tls_sw_ctx_rx.\n\nBUG: unable to handle page fault for address: 0000000000040030\nWorkqueue: vsock-loopback vsock_loopback_work\nRIP: 0010:sk_psock_strp_data_ready+0x23/0x60\nCall Trace:\n ? __die+0x81/0xc3\n ? no_context+0x194/0x350\n ? do_page_fault+0x30/0x110\n ? async_page_fault+0x3e/0x50\n ? sk_psock_strp_data_ready+0x23/0x60\n virtio_transport_recv_pkt+0x750/0x800\n ? update_load_avg+0x7e/0x620\n vsock_loopback_work+0xd0/0x100\n process_one_work+0x1a7/0x360\n worker_thread+0x30/0x390\n ? create_worker+0x1a0/0x1a0\n kthread+0x112/0x130\n ? __kthread_cancel_work+0x40/0x40\n ret_from_fork+0x1f/0x40\n\nv2:\n  - Add IS_ICSK check\nv3:\n  - Update the commits in Fixes"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"e675829d287791dd90b70a9413fa7cfb8308830c","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"a078a480ff3f43d74d8a024ae10c3c7daf6db149","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"6781cfa93a6a1b7f5be6819a5a2dd8f30f47ca26","versionType":"git"},{"version":"94531cfcbe79c3598acf96806627b2137ca32eb9","status":"affected","lessThan":"44d0469f79bd3d0b3433732877358df7dc6b17b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/tls.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.62","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.9","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/tls.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/e675829d287791dd90b70a9413fa7cfb8308830c"},{"url":"https://git.kernel.org/stable/c/a078a480ff3f43d74d8a024ae10c3c7daf6db149"},{"url":"https://git.kernel.org/stable/c/6781cfa93a6a1b7f5be6819a5a2dd8f30f47ca26"},{"url":"https://git.kernel.org/stable/c/44d0469f79bd3d0b3433732877358df7dc6b17b1"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only through local IPC — data arriving on an AF_UNIX stream socket or an AF_VSOCK socket that has been placed in a BPF sockmap — and the sockmap/SK_SKB setup requires local bpf() syscalls. Despite living in include/net/tls.h, no TLS/kTLS network peer is involved; the helper is simply misapplied to non-inet sockets.\nAC:L - The attacker deterministically controls both the configuration (sockmap with stream_parser+stream_verdict, or the sk_skb_adjust_room helper) and the trigger (writing to the socket); no race and no uncontrolled memory layout is required. The confused offset is fixed and the fault reproduces reliably, as shown by the reporter's vsock-loopback repro.\nPR:L - In the intended deployment for this feature — sockmap acceleration of AF_UNIX/vsock IPC set up by a privileged agent — an ordinary unprivileged local process triggers the OOB read merely by connecting and writing to the socket, and a guest VM can trigger the identical virtio_transport_recv_pkt path on the host. BPF tokens (6.9+) additionally let container runtimes delegate CAP_BPF/CAP_NET_ADMIN into an unprivileged user namespace, so real init-namespace root is not required.\nUI:N - No victim action is needed; the attacker performs both the sockmap attachment (or relies on an existing legitimate one) and the socket write that drives sk_data_ready into the confused helper.\nS:U - The out-of-bounds read, wild dereference and resulting oops are all confined to the host kernel's own security authority. No IOMMU, hypervisor, or sandbox boundary is crossed by the defect itself.\nC:H - tls_get_ctx() reads 8 bytes at offset 1264 of a 1152-byte unix_sock — a genuine out-of-bounds read into an adjacent, heap-groomable slab object — and the resulting value is then dereferenced at +0x30, yielding an arbitrary-address read whose outcome steers control flow as an observable oracle.\nI:H - This is a type confusion (vsock_sock/unix_sock treated as inet_connection_sock), which per scoring guidance carries High integrity impact; concretely, a spuriously \"true\" tls_sw_has_ctx_rx() in sk_skb_adjust_room() writes rxm->full_len += len_diff into the skb control block, corrupting strparser length bookkeeping on a socket that has no TLS context.\nA:H - The demonstrated result is an unhandled kernel page fault (\"BUG: unable to handle page fault for address: 0000000000040030\") inside a workqueue/softirq context, i.e. an oops that panics with panic_on_oops and otherwise kills the worker while holding sk_callback_lock and the socket lock, hanging the subsystem."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:20:00.071Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.62"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.11.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-53091","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:11:30.644487Z"}}}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:13.685Z"}}]}}}