CVE-2024-50170

net: bcmasp: fix potential memory leak in bcmasp_xmit()

State
Published
Severity
7.5 High
Published
Nov 7, 2024
Updated
Aug 5, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: bcmasp: fix potential memory leak in bcmasp_xmit()

The bcmasp_xmit() returns NETDEV_TX_OK without freeing skb in case of mapping fails, add dev_kfree_skb() to fix it.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 490cb412007de593e07c1d3e2b1ec4233886707c to before 7218de0778aefbbbcfe474a55f88bbf6f244627dAffected
  • 490cb412007de593e07c1d3e2b1ec4233886707c to before f689f20d3e09f2d4d0a2c575a9859115a33e68bdAffected
  • 490cb412007de593e07c1d3e2b1ec4233886707c to before fed07d3eb8a8d9fcc0e455175a89bc6445d6faedAffected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.59 through 6.6.*Not affected
  • 6.11.6 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.