{"id":"CVE-2023-53221","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-09-15T15:15:48.873","lastModified":"2026-06-17T06:44:32.793","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix memleak due to fentry attach failure\n\nIf it fails to attach fentry, the allocated bpf trampoline image will be\nleft in the system. That can be verified by checking /proc/kallsyms.\n\nThis meamleak can be verified by a simple bpf program as follows:\n\n  SEC(\"fentry/trap_init\")\n  int fentry_run()\n  {\n      return 0;\n  }\n\nIt will fail to attach trap_init because this function is freed after\nkernel init, and then we can find the trampoline image is left in the\nsystem by checking /proc/kallsyms.\n\n  $ tail /proc/kallsyms\n  ffffffffc0613000 t bpf_trampoline_6442453466_1  [bpf]\n  ffffffffc06c3000 t bpf_trampoline_6442453466_1  [bpf]\n\n  $ bpftool btf dump file /sys/kernel/btf/vmlinux | grep \"FUNC 'trap_init'\"\n  [2522] FUNC 'trap_init' type_id=119 linkage=static\n\n  $ echo $((6442453466 & 0x7fffffff))\n  2522\n\nNote that there are two left bpf trampoline images, that is because the\nlibbpf will fallback to raw tracepoint if -EINVAL is returned."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["kernel/bpf/trampoline.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e21aa341785c679dd409c8cb71f864c00fe6c463","lessThan":"20109ddd5bea2c24d790debf5d02584ef24c3f5e","versionType":"git","status":"affected"},{"version":"e21aa341785c679dd409c8cb71f864c00fe6c463","lessThan":"f72c67d1a82dada7d6d504c806e111e913721a30","versionType":"git","status":"affected"},{"version":"e21aa341785c679dd409c8cb71f864c00fe6c463","lessThan":"6aa27775db63ba8c7c73891c7dfb71ddc230c48d","versionType":"git","status":"affected"},{"version":"e21aa341785c679dd409c8cb71f864c00fe6c463","lessThan":"108598c39eefbedc9882273ac0df96127a629220","versionType":"git","status":"affected"},{"version":"e21d2b92354b3cd25dd774ebb0f0e52ff04a7861","versionType":"git","status":"affected"},{"version":"85d177f56e5256e14b74a65940f981f6e3e8bb32","versionType":"git","status":"affected"},{"version":"5.10.28","lessThan":"5.11","versionType":"semver","status":"affected"},{"version":"5.11.11","lessThan":"5.12","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["kernel/bpf/trampoline.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","versionType":"semver","status":"unaffected"},{"version":"6.1.39","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.3.13","lessThanOrEqual":"6.3.*","versionType":"semver","status":"unaffected"},{"version":"6.4.4","lessThanOrEqual":"6.4.*","versionType":"semver","status":"unaffected"},{"version":"6.5","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-01-14T17:50:19.613865Z","id":"CVE-2023-53221","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-401"}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-401"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.28","versionEndExcluding":"5.11","matchCriteriaId":"5FB238AF-DE30-4383-9FB7-1425BA8B9BCC"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11.11","versionEndExcluding":"5.12","matchCriteriaId":"18E94C1C-980B-4CC6-9C63-60B225E69968"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12.1","versionEndExcluding":"6.1.39","matchCriteriaId":"E08F6A3C-3F8B-445B-97DB-1D37F6D7B2E1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.3.13","matchCriteriaId":"95CB4836-7F5D-4C20-B025-8E046EC87B78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.4.4","matchCriteriaId":"6AB81046-CB69-4115-924C-963B37C41385"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*","matchCriteriaId":"75EB504D-4A83-4C67-9C8D-FD9C6C8EB4CD"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.12:rc5:*:*:*:*:*:*","matchCriteriaId":"A935F9F1-DA8B-49F4-BF2B-FA01A92F113E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.12:rc6:*:*:*:*:*:*","matchCriteriaId":"DF0AF673-12B7-4274-9090-411D4939CB62"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.12:rc7:*:*:*:*:*:*","matchCriteriaId":"06AE06A6-A0C3-4556-BFFA-3D6E4BAC43C8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.12:rc8:*:*:*:*:*:*","matchCriteriaId":"FCE63934-38CF-4311-AD72-624E86AF3889"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/108598c39eefbedc9882273ac0df96127a629220","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/20109ddd5bea2c24d790debf5d02584ef24c3f5e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/6aa27775db63ba8c7c73891c7dfb71ddc230c48d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f72c67d1a82dada7d6d504c806e111e913721a30","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]}]}