{"id":"CVE-2021-47298","aliases":["CVE-2021-47298"],"related":[],"kind":"vulnerability","state":"published","title":"bpf, sockmap: Fix potential memory leak on unlikely error case","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: bpf, sockmap: corrige una posible pérdida de memoria en un caso de error poco probable. Si se necesita skb_linearize y falla, podríamos filtrar un mensaje sobre el manejo de errores. Para solucionarlo, asegúrese de liberar el bloque de mensajes antes de devolver el error. Encontrado durante la revisión del código.","source":"nvd"}],"published":"2024-05-21T14:35:20.622Z","modified":"2026-06-17T04:17:08.140Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"4363023d2668e621b0743db351a9555d6e6ea57e","fixed":"715f378f42909c401ec043f5150c4fdf57fb8889","status":"affected"},{"type":"git","introduced":"4363023d2668e621b0743db351a9555d6e6ea57e","fixed":"6c508a1c6c62793dc6e6872cad4b200097bab7c9","status":"affected"},{"type":"git","introduced":"4363023d2668e621b0743db351a9555d6e6ea57e","fixed":"7e6b27a69167f97c56b5437871d29e9722c3e470","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.54","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.13.6","lastAffected":"5.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.54"},{"status":"affected","introduced":"5.11","fixed":"5.13.6"},{"status":"affected","version":"5.14"},{"status":"affected","version":"5.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T18:46:05.294Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47298","url":"https://www.cve.org/CVERecord?id=CVE-2021-47298","licence":"CVE Terms of Use","modified":"2026-05-11T13:51:47.067Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47298","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47298","licence":"Public domain","modified":"2026-06-17T04:17:08.140Z"}],"updatedAt":"2026-11-25T22:58:08.783Z","epss":{"score":0.00232,"percentile":0.15036,"date":"2026-12-01T12:00:22.000Z"}}