CVE-2021-47298

published 21 May 2024 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6c508a1c6c62793dc6e6872cad4b200097bab7c9, Kernel 715f378f42909c401ec043f5150c4fdf57fb8889 and Kernel 7e6b27a69167f97c56b5437871d29e9722c3e470.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.10, >=4363023d2668e621b0743db351a9555d6e6ea57e <6c508a1c6c62793dc6e6872cad4b200097bab7c9, >=4363023d2668e621b0743db351a9555d6e6ea57e <715f378f42909c401ec043f5150c4fdf57fb8889, >=4363023d2668e621b0743db351a9555d6e6ea57e <7e6b27a69167f97c56b5437871d29e9722c3e4706c508a1c6c62793dc6e6872cad4b200097bab7c9, 715f378f42909c401ec043f5150c4fdf57fb8889, 7e6b27a69167f97c56b5437871d29e9722c3e470

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47298 severity on Zeptric[![CVE-2021-47298](https://zeptric.io/badge/cve/CVE-2021-47298.svg)](https://zeptric.io/cve/CVE-2021-47298)