← Database

CVE-2021-47298

MEDIUM CVSS: 5.5 Published: 2024-05-21 Modified: 2026-06-17

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.

Affected Platforms

Linux Linux Kernel

Weakness Type

CWE-401

References