{"id":"CVE-2026-139291","state":"PUBLISHED","title":"bpf: Don't take a dynptr argument for a local dynptr","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take a dynptr argument for a local dynptr\n\nA global function is verified on its own. A dynptr which it gets as an\nargument is assumed to be of type BPF_DYNPTR_TYPE_LOCAL, but the callers\nmay pass one of any type, that of an skb for example.\n\nThe type decides whether a write through the dynptr invalidates packet\npointers, and whether a slice of it is invalidated together with them.\nInside of the function neither happens. It can take a packet pointer from\nits context argument, or a slice from the dynptr, write through the dynptr\nand go on using the pointer, although the write may have reallocated the\nhead of the skb.\n\nAssume the type of an skb dynptr instead. Nothing becomes forbidden for the\ndynptr itself, and a clone inherits the caution. The dynptr which the\ncallback of bpf_user_ringbuf_drain() gets is known to be local, and stays\nso.","publishedAt":"2026-11-30T13:33:23.790Z","updatedAt":"2026-11-30T13:33:23.790Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"0fec302c14ef061fdcc8857cb96152d617873229","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"e09c38abd0f8e1e1738544f2a572558cf6d511e1","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"179e794854f0a72051e5d30c97e7ab85c6370ecc","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"b7f97db88948aa511bcd989978f181e1367e0e8b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.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.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":["kernel/bpf/verifier.c"]}],"references":["https://git.kernel.org/stable/c/0fec302c14ef061fdcc8857cb96152d617873229","https://git.kernel.org/stable/c/e09c38abd0f8e1e1738544f2a572558cf6d511e1","https://git.kernel.org/stable/c/179e794854f0a72051e5d30c97e7ab85c6370ecc","https://git.kernel.org/stable/c/b7f97db88948aa511bcd989978f181e1367e0e8b"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139291.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139291","state":"PUBLISHED","datePublished":"2026-11-30T13:33:23.790Z","dateUpdated":"2026-11-30T13:33:23.790Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Don't take a dynptr argument for a local dynptr","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take a dynptr argument for a local dynptr\n\nA global function is verified on its own. A dynptr which it gets as an\nargument is assumed to be of type BPF_DYNPTR_TYPE_LOCAL, but the callers\nmay pass one of any type, that of an skb for example.\n\nThe type decides whether a write through the dynptr invalidates packet\npointers, and whether a slice of it is invalidated together with them.\nInside of the function neither happens. It can take a packet pointer from\nits context argument, or a slice from the dynptr, write through the dynptr\nand go on using the pointer, although the write may have reallocated the\nhead of the skb.\n\nAssume the type of an skb dynptr instead. Nothing becomes forbidden for the\ndynptr itself, and a clone inherits the caution. The dynptr which the\ncallback of bpf_user_ringbuf_drain() gets is known to be local, and stays\nso."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"0fec302c14ef061fdcc8857cb96152d617873229","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"e09c38abd0f8e1e1738544f2a572558cf6d511e1","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"179e794854f0a72051e5d30c97e7ab85c6370ecc","versionType":"git"},{"version":"a64bfe618665ea9c722f922cba8c6e3234eac5ac","status":"affected","lessThan":"b7f97db88948aa511bcd989978f181e1367e0e8b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.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.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":["kernel/bpf/verifier.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0fec302c14ef061fdcc8857cb96152d617873229"},{"url":"https://git.kernel.org/stable/c/e09c38abd0f8e1e1738544f2a572558cf6d511e1"},{"url":"https://git.kernel.org/stable/c/179e794854f0a72051e5d30c97e7ab85c6370ecc"},{"url":"https://git.kernel.org/stable/c/b7f97db88948aa511bcd989978f181e1367e0e8b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:23.790Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}