{"id":"CVE-2026-143351","state":"PUBLISHED","title":"bpf: Check the offset in bpf_skb_generic_{push,pop}()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check the offset in bpf_skb_generic_{push,pop}()\n\nTo make room for len bytes at offset off, bpf_skb_generic_push() moves the\nfirst off bytes and clears len bytes after them. It assumes that the first\noff bytes are in the linear part. But in bpf_skb_adjust_room() off can be\nthe end of the IP header, and this header can be in a frag. Then the\nfunction reads and writes after skb->tail, and can damage skb_shared_info.\n\nbpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a\nsmall value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off\nfrom skb_mac_header_len(). This length is a very large u32 when\nnetwork_header < mac_header. Then the check can pass, and memmove() reads\nand writes far outside the skb.\n\nReturn -ENOMEM from both functions, like the present check, when\noff > skb->len. Thus the sum cannot wrap. In bpf_skb_generic_push() also\npull the first off bytes into the linear part. Now bpf_skb_adjust_room()\nfails when a prog grows an skb that ends before off. network_header stays\nwrong.","publishedAt":"2026-12-03T09:22:08.370Z","updatedAt":"2026-12-03T09:22:08.370Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"71b7211ea168c19fdc8871a886cf6b738a6c9764","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"b6e295b06d6ebe0d5459661b55627fdb9c238fd4","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"280c120c9dac35f7a22589303cc90b8a00e6fde8","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"ee36c9aa44ef300cd651074bd97552b229337f85","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]}],"references":["https://git.kernel.org/stable/c/71b7211ea168c19fdc8871a886cf6b738a6c9764","https://git.kernel.org/stable/c/b6e295b06d6ebe0d5459661b55627fdb9c238fd4","https://git.kernel.org/stable/c/280c120c9dac35f7a22589303cc90b8a00e6fde8","https://git.kernel.org/stable/c/ee36c9aa44ef300cd651074bd97552b229337f85"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143351.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143351","state":"PUBLISHED","datePublished":"2026-12-03T09:22:08.370Z","dateUpdated":"2026-12-03T09:22:08.370Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.368Z"},"containers":{"cna":{"title":"bpf: Check the offset in bpf_skb_generic_{push,pop}()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check the offset in bpf_skb_generic_{push,pop}()\n\nTo make room for len bytes at offset off, bpf_skb_generic_push() moves the\nfirst off bytes and clears len bytes after them. It assumes that the first\noff bytes are in the linear part. But in bpf_skb_adjust_room() off can be\nthe end of the IP header, and this header can be in a frag. Then the\nfunction reads and writes after skb->tail, and can damage skb_shared_info.\n\nbpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a\nsmall value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off\nfrom skb_mac_header_len(). This length is a very large u32 when\nnetwork_header < mac_header. Then the check can pass, and memmove() reads\nand writes far outside the skb.\n\nReturn -ENOMEM from both functions, like the present check, when\noff > skb->len. Thus the sum cannot wrap. In bpf_skb_generic_push() also\npull the first off bytes into the linear part. Now bpf_skb_adjust_room()\nfails when a prog grows an skb that ends before off. network_header stays\nwrong."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"71b7211ea168c19fdc8871a886cf6b738a6c9764","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"b6e295b06d6ebe0d5459661b55627fdb9c238fd4","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"280c120c9dac35f7a22589303cc90b8a00e6fde8","versionType":"git"},{"version":"6578171a7ff0c31dc73258f93da7407510abf085","status":"affected","lessThan":"ee36c9aa44ef300cd651074bd97552b229337f85","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/71b7211ea168c19fdc8871a886cf6b738a6c9764"},{"url":"https://git.kernel.org/stable/c/b6e295b06d6ebe0d5459661b55627fdb9c238fd4"},{"url":"https://git.kernel.org/stable/c/280c120c9dac35f7a22589303cc90b8a00e6fde8"},{"url":"https://git.kernel.org/stable/c/ee36c9aa44ef300cd651074bd97552b229337f85"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:08.370Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}