{"api_version":"1","generated_at":"2026-12-01T14:01:15+00:00","cve":"CVE-2026-139308","urls":{"html":"https://cve.report/CVE-2026-139308","api":"https://cve.report/api/cve/CVE-2026-139308.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139308","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139308"},"summary":{"title":"bpf: Fix stale offload->prog pointer after realloc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stale offload->prog pointer after realloc\n\nbpf_prog_realloc() moves a program that the rewrites of the verifier make\noutgrow its pages.  It updates aux->prog, but not the offload->prog of a\ndevice-bound program.  When the device is unregistered,\n__bpf_offload_dev_netdev_unregister() hands the stale pointer to\n__bpf_prog_offload_destroy(), which faults on the freed program:\n\n  BUG: unable to handle page fault for address: ffffc90000071050\n  RIP: 0010:__bpf_prog_offload_destroy+0x3f/0x310\n\nIt takes the right to load a device-bound XDP program, CAP_BPF and\nCAP_NET_ADMIN or a BPF token, and a device that can be removed.\n\nCommit a1aa9ef47c29 (\"bpf: Fix stale offload->prog pointer after constant\nblinding\") repaired the other place that replaces a program.  Do the same\nhere.\n\nNothing keeps the device while a program is loaded, so it can also be\nunregistered at that very moment.  That frees the offload, and it may have\nread offload->prog already when the old copy of the program is freed.  In\nboth places update the pointer under bpf_devs_lock, before the old copy\ngoes.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:54","updated_at":"2026-11-30 14:18:54"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9","name":"https://git.kernel.org/stable/c/80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2190de7333369052fff76ccb686567ea648350b6","name":"https://git.kernel.org/stable/c/2190de7333369052fff76ccb686567ea648350b6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b","name":"https://git.kernel.org/stable/c/4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8e83d53596445fcf5b0385e5fbe8bcd971e06d06","name":"https://git.kernel.org/stable/c/8e83d53596445fcf5b0385e5fbe8bcd971e06d06","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/87c3268b4acac6942d1dbf600edbf6374be0c91b","name":"https://git.kernel.org/stable/c/87c3268b4acac6942d1dbf600edbf6374be0c91b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139308","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139308","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab3f0063c48c26c927851b6767824e35a716d878 2190de7333369052fff76ccb686567ea648350b6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab3f0063c48c26c927851b6767824e35a716d878 4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab3f0063c48c26c927851b6767824e35a716d878 87c3268b4acac6942d1dbf600edbf6374be0c91b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab3f0063c48c26c927851b6767824e35a716d878 80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab3f0063c48c26c927851b6767824e35a716d878 8e83d53596445fcf5b0385e5fbe8bcd971e06d06 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/offload.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2190de7333369052fff76ccb686567ea648350b6","status":"affected","version":"ab3f0063c48c26c927851b6767824e35a716d878","versionType":"git"},{"lessThan":"4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b","status":"affected","version":"ab3f0063c48c26c927851b6767824e35a716d878","versionType":"git"},{"lessThan":"87c3268b4acac6942d1dbf600edbf6374be0c91b","status":"affected","version":"ab3f0063c48c26c927851b6767824e35a716d878","versionType":"git"},{"lessThan":"80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9","status":"affected","version":"ab3f0063c48c26c927851b6767824e35a716d878","versionType":"git"},{"lessThan":"8e83d53596445fcf5b0385e5fbe8bcd971e06d06","status":"affected","version":"ab3f0063c48c26c927851b6767824e35a716d878","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/linux/bpf.h","kernel/bpf/core.c","kernel/bpf/offload.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.15"},{"lessThan":"4.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stale offload->prog pointer after realloc\n\nbpf_prog_realloc() moves a program that the rewrites of the verifier make\noutgrow its pages.  It updates aux->prog, but not the offload->prog of a\ndevice-bound program.  When the device is unregistered,\n__bpf_offload_dev_netdev_unregister() hands the stale pointer to\n__bpf_prog_offload_destroy(), which faults on the freed program:\n\n  BUG: unable to handle page fault for address: ffffc90000071050\n  RIP: 0010:__bpf_prog_offload_destroy+0x3f/0x310\n\nIt takes the right to load a device-bound XDP program, CAP_BPF and\nCAP_NET_ADMIN or a BPF token, and a device that can be removed.\n\nCommit a1aa9ef47c29 (\"bpf: Fix stale offload->prog pointer after constant\nblinding\") repaired the other place that replaces a program.  Do the same\nhere.\n\nNothing keeps the device while a program is loaded, so it can also be\nunregistered at that very moment.  That frees the offload, and it may have\nread offload->prog already when the old copy of the program is freed.  In\nboth places update the pointer under bpf_devs_lock, before the old copy\ngoes."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:33.238Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2190de7333369052fff76ccb686567ea648350b6"},{"url":"https://git.kernel.org/stable/c/4afa9934aa8da40d8b03d7f18ddbee7113bc8f9b"},{"url":"https://git.kernel.org/stable/c/87c3268b4acac6942d1dbf600edbf6374be0c91b"},{"url":"https://git.kernel.org/stable/c/80d3aaf751b9a2a1d204f3ee4e2ef3bb1207cbc9"},{"url":"https://git.kernel.org/stable/c/8e83d53596445fcf5b0385e5fbe8bcd971e06d06"}],"title":"bpf: Fix stale offload->prog pointer after realloc","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139308","datePublished":"2026-11-30T13:33:33.238Z","dateReserved":"2026-11-30T13:22:15.926Z","dateUpdated":"2026-11-30T13:33:33.238Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:54","lastModifiedDate":"2026-11-30 14:18:54","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139308","Ordinal":"1","Title":"bpf: Fix stale offload->prog pointer after realloc","CVE":"CVE-2026-139308","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139308","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stale offload->prog pointer after realloc\n\nbpf_prog_realloc() moves a program that the rewrites of the verifier make\noutgrow its pages.  It updates aux->prog, but not the offload->prog of a\ndevice-bound program.  When the device is unregistered,\n__bpf_offload_dev_netdev_unregister() hands the stale pointer to\n__bpf_prog_offload_destroy(), which faults on the freed program:\n\n  BUG: unable to handle page fault for address: ffffc90000071050\n  RIP: 0010:__bpf_prog_offload_destroy+0x3f/0x310\n\nIt takes the right to load a device-bound XDP program, CAP_BPF and\nCAP_NET_ADMIN or a BPF token, and a device that can be removed.\n\nCommit a1aa9ef47c29 (\"bpf: Fix stale offload->prog pointer after constant\nblinding\") repaired the other place that replaces a program.  Do the same\nhere.\n\nNothing keeps the device while a program is loaded, so it can also be\nunregistered at that very moment.  That frees the offload, and it may have\nread offload->prog already when the old copy of the program is freed.  In\nboth places update the pointer under bpf_devs_lock, before the old copy\ngoes.","Type":"Description","Title":"bpf: Fix stale offload->prog pointer after realloc"}]}}}