CVE-2026-99029

net: sparx5: free the matchall entry on destroy

State
Published
Severity
Not scored
Published
Oct 23, 2026
Updated
Oct 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

net: sparx5: free the matchall entry on destroy

sparx5_tc_matchall_replace() allocates a struct sparx5_mall_entry for every offloaded matchall filter and adds it to sparx5->mall_entries. sparx5_tc_matchall_destroy() removes the entry from the list, but never frees it, so the entry of every deleted mirror and goto matchall filter is leaked.

Free the entry after unlinking it.

The leak was discovered by an AI code review agent, and reproduced with kmemleak on a lan969x EV board (EV23X71A) by repeatedly adding and deleting matchall mirror and goto filters. With the fix, kmemleak no longer reports the leak.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1ede4acf045ced70d9b72465e2e968aec71e0a42 to before fa0c27d9e17ee2e46d4b8274a6fde706f0d6725eAffected
  • 1ede4acf045ced70d9b72465e2e968aec71e0a42 to before cc7cc5955d22ea90555f09a680d4bf56d4a0c24aAffected
  • 1ede4acf045ced70d9b72465e2e968aec71e0a42 to before 44efb6d92dd5a2b1dd9553d92ef0eebde135fc6eAffected
  • 1ede4acf045ced70d9b72465e2e968aec71e0a42 to before 2b82e16d6084cbc651e3c902198f1945408ee1a5Affected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.2.11 through 7.2.*Not affected
  • 7.3 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.