{"api_version":"1","generated_at":"2026-12-01T14:33:27+00:00","cve":"CVE-2026-139299","urls":{"html":"https://cve.report/CVE-2026-139299","api":"https://cve.report/api/cve/CVE-2026-139299.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139299","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139299"},"summary":{"title":"bpf: Free what map_free() unlinks for sleepable readers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Free what map_free() unlinks for sleepable readers\n\nbpf_local_storage_map_free() takes the elements of the map off the lists\nof their owners, which are alive, and frees them, and the storage of an\nowner with its last element, behind a plain RCU grace period.  Nobody uses\nthe map any more, but the other maps of these owners are in use.  A\nsleepable program calls the get and delete helpers under\nrcu_read_lock_trace() only.  While it walks the list of an owner for its\nown map, or is about to lock the storage, the element it stands on, or the\nstorage, can be freed under it.\n\nWhatever else takes an element off the list of a live owner frees it\nbehind an RCU Tasks Trace grace period, which implies a plain one.  Do so\nin bpf_local_storage_map_free() as well.  It waits for these callbacks\nbefore it frees the map.\n\nThis does not help a sleepable program that hands an owner to the helpers\nwhich nobody holds, and which may be gone by then.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:53","updated_at":"2026-11-30 14:18:53"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e4bee26f640d6d150f2f9dc2da6f952b897e57de","name":"https://git.kernel.org/stable/c/e4bee26f640d6d150f2f9dc2da6f952b897e57de","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9cf351ee561e63f1e5181a724dfd696c522d900e","name":"https://git.kernel.org/stable/c/9cf351ee561e63f1e5181a724dfd696c522d900e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5bdd61e98da5468140aff5b5abc0e8544deaf2ee","name":"https://git.kernel.org/stable/c/5bdd61e98da5468140aff5b5abc0e8544deaf2ee","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139299","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139299","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dcf456c9a095a6e71f53d6f6f004133ee851ee70 e4bee26f640d6d150f2f9dc2da6f952b897e57de git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dcf456c9a095a6e71f53d6f6f004133ee851ee70 9cf351ee561e63f1e5181a724dfd696c522d900e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dcf456c9a095a6e71f53d6f6f004133ee851ee70 5bdd61e98da5468140aff5b5abc0e8544deaf2ee git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cf4b46ea392d75cc06800be7397d58d54453c6f3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d2d2a1b6670bfac94a8b6a1fa9ce8b786cbe972e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.17.13 5.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.18.2 5.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 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":["kernel/bpf/bpf_local_storage.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e4bee26f640d6d150f2f9dc2da6f952b897e57de","status":"affected","version":"dcf456c9a095a6e71f53d6f6f004133ee851ee70","versionType":"git"},{"lessThan":"9cf351ee561e63f1e5181a724dfd696c522d900e","status":"affected","version":"dcf456c9a095a6e71f53d6f6f004133ee851ee70","versionType":"git"},{"lessThan":"5bdd61e98da5468140aff5b5abc0e8544deaf2ee","status":"affected","version":"dcf456c9a095a6e71f53d6f6f004133ee851ee70","versionType":"git"},{"status":"affected","version":"cf4b46ea392d75cc06800be7397d58d54453c6f3","versionType":"git"},{"status":"affected","version":"d2d2a1b6670bfac94a8b6a1fa9ce8b786cbe972e","versionType":"git"},{"lessThan":"5.18","status":"affected","version":"5.17.13","versionType":"semver"},{"lessThan":"5.19","status":"affected","version":"5.18.2","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/bpf_local_storage.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.19"},{"lessThan":"5.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","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.18.66","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Free what map_free() unlinks for sleepable readers\n\nbpf_local_storage_map_free() takes the elements of the map off the lists\nof their owners, which are alive, and frees them, and the storage of an\nowner with its last element, behind a plain RCU grace period.  Nobody uses\nthe map any more, but the other maps of these owners are in use.  A\nsleepable program calls the get and delete helpers under\nrcu_read_lock_trace() only.  While it walks the list of an owner for its\nown map, or is about to lock the storage, the element it stands on, or the\nstorage, can be freed under it.\n\nWhatever else takes an element off the list of a live owner frees it\nbehind an RCU Tasks Trace grace period, which implies a plain one.  Do so\nin bpf_local_storage_map_free() as well.  It waits for these callbacks\nbefore it frees the map.\n\nThis does not help a sleepable program that hands an owner to the helpers\nwhich nobody holds, and which may be gone by then."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:28.261Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e4bee26f640d6d150f2f9dc2da6f952b897e57de"},{"url":"https://git.kernel.org/stable/c/9cf351ee561e63f1e5181a724dfd696c522d900e"},{"url":"https://git.kernel.org/stable/c/5bdd61e98da5468140aff5b5abc0e8544deaf2ee"}],"title":"bpf: Free what map_free() unlinks for sleepable readers","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139299","datePublished":"2026-11-30T13:33:28.261Z","dateReserved":"2026-11-30T13:22:15.925Z","dateUpdated":"2026-11-30T13:33:28.261Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:53","lastModifiedDate":"2026-11-30 14:18:53","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139299","Ordinal":"1","Title":"bpf: Free what map_free() unlinks for sleepable readers","CVE":"CVE-2026-139299","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139299","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Free what map_free() unlinks for sleepable readers\n\nbpf_local_storage_map_free() takes the elements of the map off the lists\nof their owners, which are alive, and frees them, and the storage of an\nowner with its last element, behind a plain RCU grace period.  Nobody uses\nthe map any more, but the other maps of these owners are in use.  A\nsleepable program calls the get and delete helpers under\nrcu_read_lock_trace() only.  While it walks the list of an owner for its\nown map, or is about to lock the storage, the element it stands on, or the\nstorage, can be freed under it.\n\nWhatever else takes an element off the list of a live owner frees it\nbehind an RCU Tasks Trace grace period, which implies a plain one.  Do so\nin bpf_local_storage_map_free() as well.  It waits for these callbacks\nbefore it frees the map.\n\nThis does not help a sleepable program that hands an owner to the helpers\nwhich nobody holds, and which may be gone by then.","Type":"Description","Title":"bpf: Free what map_free() unlinks for sleepable readers"}]}}}