{"id":"CVE-2026-139290","state":"PUBLISHED","title":"bpf: Follow the head if an skb is written from a slice","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Follow the head if an skb is written from a slice\n\nThe source of bpf_dynptr_write() may be a slice of the skb which is\nwritten to, that is a pointer into its head. bpf_dynptr_copy() does it by\nitself for a copy inside of one skb, if the source is linear and the\ndestination is not.\n\n__bpf_skb_store_bytes() and __bpf_skb_meta_store_bytes() make the skb\nwritable first. If that reallocates the head, the source points to the old\none, and freed memory is copied into the packet.\n\nThe offsets in the head do not change when it is reallocated here. Move\nthe source along with the head.","publishedAt":"2026-11-30T13:33:23.253Z","updatedAt":"2026-11-30T13:33:23.253Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"7daa965cd38e853c97b54f32c65e1f1b1b52bf98","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"cedda0bbb0635f936bc557d0d3dde2183d84a06a","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"6672e5657c306a7880723d0e4cfb88ec340cf570","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"1c19f2b3b2f3b55c8017092257634cb8229b7d97","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":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/7daa965cd38e853c97b54f32c65e1f1b1b52bf98","https://git.kernel.org/stable/c/cedda0bbb0635f936bc557d0d3dde2183d84a06a","https://git.kernel.org/stable/c/6672e5657c306a7880723d0e4cfb88ec340cf570","https://git.kernel.org/stable/c/1c19f2b3b2f3b55c8017092257634cb8229b7d97"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139290.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139290","state":"PUBLISHED","datePublished":"2026-11-30T13:33:23.253Z","dateUpdated":"2026-11-30T13:33:23.253Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Follow the head if an skb is written from a slice","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Follow the head if an skb is written from a slice\n\nThe source of bpf_dynptr_write() may be a slice of the skb which is\nwritten to, that is a pointer into its head. bpf_dynptr_copy() does it by\nitself for a copy inside of one skb, if the source is linear and the\ndestination is not.\n\n__bpf_skb_store_bytes() and __bpf_skb_meta_store_bytes() make the skb\nwritable first. If that reallocates the head, the source points to the old\none, and freed memory is copied into the packet.\n\nThe offsets in the head do not change when it is reallocated here. Move\nthe source along with the head."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"7daa965cd38e853c97b54f32c65e1f1b1b52bf98","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"cedda0bbb0635f936bc557d0d3dde2183d84a06a","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"6672e5657c306a7880723d0e4cfb88ec340cf570","versionType":"git"},{"version":"2012c867c8005d72c949e274133df429ece78808","status":"affected","lessThan":"1c19f2b3b2f3b55c8017092257634cb8229b7d97","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":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/7daa965cd38e853c97b54f32c65e1f1b1b52bf98"},{"url":"https://git.kernel.org/stable/c/cedda0bbb0635f936bc557d0d3dde2183d84a06a"},{"url":"https://git.kernel.org/stable/c/6672e5657c306a7880723d0e4cfb88ec340cf570"},{"url":"https://git.kernel.org/stable/c/1c19f2b3b2f3b55c8017092257634cb8229b7d97"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:23.253Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}