# CVE-2023-53999: net/mlx5e: TC, Fix internal port memory leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-28)
- **Published:** 2025-12-24T10:55:35.523Z
- **Modified:** 2026-10-03T11:17:29.397Z

## Who should check

- Anyone running Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 9079ef5fb26ff38ced50cc15199ce56a009b8605; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< bc1918bac0f30e3f551ef5649b53062917db55fa; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< ac5da544a3c2047cbfd715acd9cec8380d7fe5c6
- Anyone running Linux 5.18

## Description

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

net/mlx5e: TC, Fix internal port memory leak

The flow rule can be splited, and the extra post\_act rules are added
to post\_act table. It's possible to trigger memleak when the rule
forwards packets from internal port and over tunnel, in the case that,
for example, CT 'new' state offload is allowed. As int\_port object is
assigned to the flow attribute of post\_act rule, and its refcnt is
incremented by mlx5e\_tc\_int\_port\_get(), but mlx5e\_tc\_int\_port\_put() is
not called, the refcnt is never decremented, then int\_port is never
freed.

The kmemleak reports the following error:
unreferenced object 0xffff888128204b80 (size 64):
  comm "handler20", pid 50121, jiffies 4296973009 (age 642.932s)
  hex dump (first 32 bytes):
    01 00 00 00 19 00 00 00 03 f0 00 00 04 00 00 00  ................
    98 77 67 41 81 88 ff ff 98 77 67 41 81 88 ff ff  .wgA.....wgA....
  backtrace:
    \[\<00000000e992680d\>\] kmalloc\_trace+0x27/0x120
    \[\<000000009e945a98\>\] mlx5e\_tc\_int\_port\_get+0x3f3/0xe20 \[mlx5\_core\]
    \[\<0000000035a537f0\>\] mlx5e\_tc\_add\_fdb\_flow+0x473/0xcf0 \[mlx5\_core\]
    \[\<0000000070c2cec6\>\] \_\_mlx5e\_add\_fdb\_flow+0x7cf/0xe90 \[mlx5\_core\]
    \[\<000000005cc84048\>\] mlx5e\_configure\_flower+0xd40/0x4c40 \[mlx5\_core\]
    \[\<000000004f8a2031\>\] mlx5e\_rep\_indr\_offload.isra.0+0x10e/0x1c0 \[mlx5\_core\]
    \[\<000000007df797dc\>\] mlx5e\_rep\_indr\_setup\_tc\_cb+0x90/0x130 \[mlx5\_core\]
    \[\<0000000016c15cc3\>\] tc\_setup\_cb\_add+0x1cf/0x410
    \[\<00000000a63305b4\>\] fl\_hw\_replace\_filter+0x38f/0x670 \[cls\_flower\]
    \[\<000000008bc9e77c\>\] fl\_change+0x1fd5/0x4430 \[cls\_flower\]
    \[\<00000000e7f766e4\>\] tc\_new\_tfilter+0x867/0x2010
    \[\<00000000e101c0ef\>\] rtnetlink\_rcv\_msg+0x6fc/0x9f0
    \[\<00000000e1111d44\>\] netlink\_rcv\_skb+0x12c/0x360
    \[\<0000000082dd6c8b\>\] netlink\_unicast+0x438/0x710
    \[\<00000000fc568f70\>\] netlink\_sendmsg+0x794/0xc50
    \[\<0000000016e92590\>\] sock\_sendmsg+0xc5/0x190

So fix this by moving int\_port cleanup code to the flow attribute
free helper, which is used by all the attribute free cases.

## Affected and fixed versions

- Linux: \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 9079ef5fb26ff38ced50cc15199ce56a009b8605; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< bc1918bac0f30e3f551ef5649b53062917db55fa; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< ac5da544a3c2047cbfd715acd9cec8380d7fe5c6 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53999. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53999.md
Affected: Linux >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < 9079ef5fb26ff38ced50cc15199ce56a009b8605; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < bc1918bac0f30e3f551ef5649b53062917db55fa; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < ac5da544a3c2047cbfd715acd9cec8380d7fe5c6; Linux 5.18
Fixed in: Linux 9079ef5fb26ff38ced50cc15199ce56a009b8605

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53999 being exploited?

There is no confirmed exploitation: CVE-2023-53999 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-53999?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53999?

Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 9079ef5fb26ff38ced50cc15199ce56a009b8605; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< bc1918bac0f30e3f551ef5649b53062917db55fa; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< ac5da544a3c2047cbfd715acd9cec8380d7fe5c6; Linux 5.18.

### Is there a fix for CVE-2023-53999?

Yes. Fixed in Linux 9079ef5fb26ff38ced50cc15199ce56a009b8605. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53999?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/9079ef5fb26ff38ced50cc15199ce56a009b8605>
- other: <https://git.kernel.org/stable/c/bc1918bac0f30e3f551ef5649b53062917db55fa>
- other: <https://git.kernel.org/stable/c/ac5da544a3c2047cbfd715acd9cec8380d7fe5c6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53999>

HTML: <https://flawdb.com/CVE-2023-53999> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53999>
