CVE-2021-47298

MEDIUM

Linux Kernel - Use-After-Free in BPF Sockmap Error Handling

Title source: llm
STIX 2.1

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

CVSS v3 5.5
EPSS 0.0023
EPSS Percentile 13.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-401
Status published
Products (10)
Linux/Linux < 5.10
Linux/Linux 4363023d2668e621b0743db351a9555d6e6ea57e - 6c508a1c6c62793dc6e6872cad4b200097bab7c9
Linux/Linux 4363023d2668e621b0743db351a9555d6e6ea57e - 715f378f42909c401ec043f5150c4fdf57fb8889
Linux/Linux 4363023d2668e621b0743db351a9555d6e6ea57e - 7e6b27a69167f97c56b5437871d29e9722c3e470
Linux/Linux 5.10
Linux/Linux 5.10.54 - 5.10.*
Linux/Linux 5.13.6 - 5.13.*
Linux/Linux 5.14
linux/linux_kernel 5.14 rc1 (2 CPE variants)
linux/linux_kernel 5.10 - 5.10.54
Published May 21, 2024
Tracked Since Feb 18, 2026