{"id":"CVE-2023-52447","revision":null,"records":[{"revision":"35e3aebddddb45d09efce6b3998e60bb","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-52447","aliases":[],"title":"bpf: Defer the free of inner map when necessary","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Defer the free of inner map when necessary\n\nWhen updating or deleting an inner map in map array or map htab, the map\nmay still be accessed by non-sleepable program or sleepable program.\nHowever bpf_map_fd_put_ptr() decreases the ref-counter of the inner map\ndirectly through bpf_map_put(), if the ref-counter is the last one\n(which is true for most cases), the inner map will be freed by\nops->map_free() in a kworker. But for now, most .map_free() callbacks\ndon't use synchronize_rcu() or its variants to wait for the elapse of a\nRCU grace period, so after the invocation of ops->map_free completes,\nthe bpf program which is accessing the inner map may incur\nuse-after-free problem.\n\nFix the free of inner map by invoking bpf_map_free_deferred() after both\none RCU grace period and one tasks trace RCU grace period if the inner\nmap has been removed from the outer map before. The deferment is\naccomplished by using call_rcu() or call_rcu_tasks_trace() when\nreleasing the last ref-counter of bpf map. The newly-added rcu_head\nfield in bpf_map shares the same storage space with work field to\nreduce the size of bpf_map.","state":0,"publishedAt":"2024-02-22T16:21:39.032+00:00","modifiedAt":"2026-10-15T00:16:57.695+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"include/linux/bpf.h\",\n                        \"kernel/bpf/map_in_map.c\",\n                        \"kernel/bpf/syscall.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"90c445799fd1dc214d7c6279c144e33a35e29ef2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"37d98fb9c3144c0fddf7f6e99aece9927ac8dce6\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"62fca83303d608ad4fec3f7428c8685680bb01b0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"f91cd728b10c51f6d4a39957ccd56d1e802fc8ee\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"bfd9b20c4862f41d4590fde11d70a5eeae53dcc5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"bba1dc0b55ac462d24ed1228ad49800c238cd6d7\",\n                            \"lessThan\": \"876673364161da50eed6b472d746ef88242b2368\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"include/linux/bpf.h\",\n                        \"kernel/bpf/map_in_map.c\",\n                        \"kernel/bpf/syscall.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.9\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.9\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.214\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.153\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.75\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.14\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.7.2\",\n                            \"lessThanOrEqual\": \"6.7.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.8\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/90c445799fd1dc214d7c6279c144e33a35e29ef2","https://git.kernel.org/stable/c/37d98fb9c3144c0fddf7f6e99aece9927ac8dce6","https://git.kernel.org/stable/c/62fca83303d608ad4fec3f7428c8685680bb01b0","https://git.kernel.org/stable/c/f91cd728b10c51f6d4a39957ccd56d1e802fc8ee","https://git.kernel.org/stable/c/bfd9b20c4862f41d4590fde11d70a5eeae53dcc5","https://git.kernel.org/stable/c/876673364161da50eed6b472d746ef88242b2368"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-52447","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-52447","identifiers":["CVE-2023-52447"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-09T22:04:21.7510311+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-09T22:04:21.7510311+00:00","lastSuccessAt":"2026-11-09T22:04:21.9174281+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:21.9174285+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-24e6fde7b744113daefb8f6135035fb8a5c69c9617c9c0d40574a0376532ffd3-496c6c80845a4235d695039f4a651d70f3b55bc53fc01f5ca259c734136db852","complete":true,"records":421688,"lastAttemptAt":"2026-11-09T22:02:15.6116354+00:00","lastSuccessAt":"2026-11-09T22:02:15.4777453+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:02:15.6116354+00:00","snapshotPublishedAt":"2026-11-09T21:30:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5522e4ae35aa4bdc9d39e95136c0428b","complete":false,"records":13672,"lastAttemptAt":"2026-11-09T22:17:03.1981375+00:00","lastSuccessAt":"2026-11-09T22:17:03.194+00:00","error":"27 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-09T22:17:03.194+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13207,"expectedIdentifiers":13725,"failedIdentifiers":27},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-09T22:04:21.7510311+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-09T22:04:21.7510311+00:00","lastSuccessAt":"2026-11-09T22:04:21.9181937+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:21.9181977+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8b527f7960454708a3fcfe8f37f191e9","complete":false,"records":13680,"lastAttemptAt":"2026-11-09T22:04:47.0464678+00:00","lastSuccessAt":"2026-11-09T22:04:47.043+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:47.043+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13704,"expectedIdentifiers":13725,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-422f1ff5212ec8e62457b7c5d867c0d7ff5bdd57ee4fe937d3d7712d35f862bb","complete":true,"records":9919,"lastAttemptAt":"2026-11-09T22:04:21.6095423+00:00","lastSuccessAt":"2026-11-09T22:04:21.3703177+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:21.6095423+00:00","snapshotPublishedAt":"2026-11-09T22:03:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-09T22:02:15.7662034+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:02:15.7662034+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-09T22:04:21.7141844+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:21.7141844+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-cefd5e58c60b69931053d90de4b49991fc540e6131b53c29cfa39467d9128b3a","complete":true,"records":231328,"lastAttemptAt":"2026-11-09T22:04:12.3749697+00:00","lastSuccessAt":"2026-11-09T22:04:10.8762138+00:00","error":null,"lastVerifiedAt":"2026-11-09T22:04:12.3749697+00:00","snapshotPublishedAt":"2026-11-09T21:48:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}