CVE-2021-47298

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

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4363023d2668e621b0743db351a9555d6e6ea57e to before 715f378f42909c401ec043f5150c4fdf57fb8889Affected
  • 4363023d2668e621b0743db351a9555d6e6ea57e to before 6c508a1c6c62793dc6e6872cad4b200097bab7c9Affected
  • 4363023d2668e621b0743db351a9555d6e6ea57e to before 7e6b27a69167f97c56b5437871d29e9722c3e470Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.54 through 5.10.*Not affected
  • 5.13.6 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.