What’s Vulnerable › Vulnerabilities

CVE-2021-47298: bpf, sockmap: Fix potential memory leak on unlikely error case

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 products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.54, 5.13.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47298 or the next vulnerability affects your stack