{"id":"CVE-2026-139295","state":"PUBLISHED","title":"bpf: Keep the symbols of a program until it has ended","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Keep the symbols of a program until it has ended\n\nWhen the last reference to a program goes, __bpf_prog_put_noref() takes\nits symbols out of the kallsyms tree and frees its line info at once, and\nwaits for the grace periods only with the rest.  But the program may still\nbe running: the link or the array it was called from is gone, the call is\nnot over.\n\nsearch_bpf_extables() finds the exception table of a program by its\nsymbol.  A load that faults, and that the table is there to fix up, is\nfatal from then on:\n\n  Oops: general protection fault, probably for non-canonical address\n  0xdead0000000006f8: 0000 [#1] SMP NOPTI\n  RIP: 0010:0xffffffffc06008f6\n\nIt takes a program that is detached and closed on one CPU while it runs on\nanother.  Unwinders and bpf_prog_find_from_stack() do not know the program\nany more either, and the stack dump of a BPF stream reads the freed line\ninfo.\n\nFree the line info behind the grace periods the program needs, as it is\ndone with the BTF that its text comes from.  Remove the symbols in\nbpf_prog_free_deferred(), which runs behind them as well.  The symbols are\nlooked up under rcu_read_lock(), so the images and the program itself are\nfreed one more grace period later.  All that the program refers to is\nreleased when it was before.","publishedAt":"2026-11-30T13:33:26.052Z","updatedAt":"2026-11-30T13:33:26.052Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"bb21e91536ab2637409653a27d7472844632aa2f","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"bdcf213ad29d2ad47c0cdefc17dbcc5aaf1c8c13","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"b1c708a5d3811a67fc1b7a855b9237bb091e7193","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"4eaf4d71b91a983489227336adcab33d8eae58a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/syscall.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.12.119","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":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/syscall.c"]}],"references":["https://git.kernel.org/stable/c/bb21e91536ab2637409653a27d7472844632aa2f","https://git.kernel.org/stable/c/bdcf213ad29d2ad47c0cdefc17dbcc5aaf1c8c13","https://git.kernel.org/stable/c/b1c708a5d3811a67fc1b7a855b9237bb091e7193","https://git.kernel.org/stable/c/4eaf4d71b91a983489227336adcab33d8eae58a5"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139295.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139295","state":"PUBLISHED","datePublished":"2026-11-30T13:33:26.052Z","dateUpdated":"2026-11-30T13:33:26.052Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf: Keep the symbols of a program until it has ended","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Keep the symbols of a program until it has ended\n\nWhen the last reference to a program goes, __bpf_prog_put_noref() takes\nits symbols out of the kallsyms tree and frees its line info at once, and\nwaits for the grace periods only with the rest.  But the program may still\nbe running: the link or the array it was called from is gone, the call is\nnot over.\n\nsearch_bpf_extables() finds the exception table of a program by its\nsymbol.  A load that faults, and that the table is there to fix up, is\nfatal from then on:\n\n  Oops: general protection fault, probably for non-canonical address\n  0xdead0000000006f8: 0000 [#1] SMP NOPTI\n  RIP: 0010:0xffffffffc06008f6\n\nIt takes a program that is detached and closed on one CPU while it runs on\nanother.  Unwinders and bpf_prog_find_from_stack() do not know the program\nany more either, and the stack dump of a BPF stream reads the freed line\ninfo.\n\nFree the line info behind the grace periods the program needs, as it is\ndone with the BTF that its text comes from.  Remove the symbols in\nbpf_prog_free_deferred(), which runs behind them as well.  The symbols are\nlooked up under rcu_read_lock(), so the images and the program itself are\nfreed one more grace period later.  All that the program refers to is\nreleased when it was before."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"bb21e91536ab2637409653a27d7472844632aa2f","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"bdcf213ad29d2ad47c0cdefc17dbcc5aaf1c8c13","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"b1c708a5d3811a67fc1b7a855b9237bb091e7193","versionType":"git"},{"version":"3dec541b2e632d630fe7142ed44f0b3702ef1f8c","status":"affected","lessThan":"4eaf4d71b91a983489227336adcab33d8eae58a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/syscall.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.12.119","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":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/syscall.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bb21e91536ab2637409653a27d7472844632aa2f"},{"url":"https://git.kernel.org/stable/c/bdcf213ad29d2ad47c0cdefc17dbcc5aaf1c8c13"},{"url":"https://git.kernel.org/stable/c/b1c708a5d3811a67fc1b7a855b9237bb091e7193"},{"url":"https://git.kernel.org/stable/c/4eaf4d71b91a983489227336adcab33d8eae58a5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:26.052Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}