{"id":"CVE-2021-47298","published":"2024-05-21T14:35:20Z","modified":"2026-05-11T13:51:47Z","title":"bpf, sockmap: Fix potential memory leak on unlikely error case","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Fix potential memory leak on unlikely error case\n\nIf skb_linearize is needed and fails we could leak a msg on the error\nhandling. To fix ensure we kfree the msg block before returning error.\nFound during code review.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00305,"percentile":0.15645,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889","tags":[]},{"url":"https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9","tags":[]},{"url":"https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.13}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4363023d2668e621b0743db351a9555d6e6ea57e, < 715f378f42909c401ec043f5150c4fdf57fb8889",">= 4363023d2668e621b0743db351a9555d6e6ea57e, < 6c508a1c6c62793dc6e6872cad4b200097bab7c9",">= 4363023d2668e621b0743db351a9555d6e6ea57e, < 7e6b27a69167f97c56b5437871d29e9722c3e470"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-21T18:46:05.294895Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34303","exploited":false,"provenance":"source"}}