← CVE Intelligence

CVE-2021-47298

bpf, sockmap: Fix potential memory leak on unlikely error case PUBLISHED

Description (CNA)

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix potential memory leak on unlikely error case If skb_linearize is needed and fails we could leak a msg on the error handling. To fix ensure we kfree the msg block before returning error. Found during code review.

Affected (CNA)

Vendor / productVersions
Linux / Linuxaffected 4363023d2668e621b0743db351a9555d6e6ea57e before 715f378f42909c401ec043f5150c4fdf57fb8889; affected 4363023d2668e621b0743db351a9555d6e6ea57e before 6c508a1c6c62793dc6e6872cad4b200097bab7c9; affected 4363023d2668e621b0743db351a9555d6e6ea57e before 7e6b27a69167f97c56b5437871d29e9722c3e470
Linux / Linuxaffected 5.10; unaffected 0 before 5.10; unaffected 5.10.54 through 5.10.*; unaffected 5.13.6 through 5.13.*; unaffected 5.14 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.