CVE-2021-47298Published May 21, 2024 · May 21Updated Jun 17
bpf, sockmap: Fix potential memory leak on unlikely error case
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.545.13.65.14In 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.
From the CVE record · Linux
The Linux kernel’s BPF sockmap error handling can leak a message block if skb_linearize is needed and fails. The report does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.