{"id":"AZL-117043","summary":"CVE-2026-139308 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stale offload-\u003eprog pointer after realloc\n\nbpf_prog_realloc() moves a program that the rewrites of the verifier make\noutgrow its pages.  It updates aux-\u003eprog, but not the offload-\u003eprog 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-\u003eprog 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-\u003eprog 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.","modified":"2026-12-01T14:17:34.382947888Z","published":"2026-11-30T14:18:54Z","upstream":["CVE-2026-139308"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139308"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117043.json"}}],"schema_version":"1.9.2"}