# CVE-2026-23164: rocker: fix memory leak in rocker\_world\_port\_post\_fini()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-14 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-23164, DEBIAN-CVE-2026-23164
- Record: https://cvemate.com/vulnerability/CVE-2026-23164 · JSON: https://cvemate.com/vulnerability/CVE-2026-23164/json

## Description

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

rocker: fix memory leak in rocker_world_port_post_fini()

In rocker_world_port_pre_init(), rocker_port->wpriv is allocated with
kzalloc(wops->port_priv_size, GFP_KERNEL). However, in
rocker_world_port_post_fini(), the memory is only freed when
wops->port_post_fini callback is set:

    if (!wops->port_post_fini)
        return;
    wops->port_post_fini(rocker_port);
    kfree(rocker_port->wpriv);

Since rocker_ofdpa_ops does not implement port_post_fini callback
(it is NULL), the wpriv memory allocated for each port is never freed
when ports are removed. This leads to a memory leak of
sizeof(struct ofdpa_port) bytes per port on every device removal.

Fix this by always calling kfree(rocker_port->wpriv) regardless of
whether the port_post_fini callback exists.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.175%, percentile 7.207%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 159)

- debian linux (Debian): \< 6.1.162-1 \| \< 6.12.69-1 \| \< 6.18.9-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-176.186 \| \< 6.8.0-117.117
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1105.112 \| \< 6.8.0-1055.58
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1105.112~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1057.60~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1105.112+fips1 \| \< 6.8.0-1055.58+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1110.119 \| \< 6.8.0-1056.62

## References (first 20 of 40)

- <https://git.kernel.org/stable/c/2a3a64d75d2d0727da285749476761ebcad557a3>
- <https://git.kernel.org/stable/c/b11e6f926480ab0939fec44781f28558c54be4e7>
- <https://git.kernel.org/stable/c/8ce2e85889939c02740b4245301aa5c35fc94887>
- <https://git.kernel.org/stable/c/d448bf96889f1905e740c554780f5c9fa0440566>
- <https://git.kernel.org/stable/c/d8723917efda3b4f4c3de78d1ec1e1af015c0be1>
- <https://git.kernel.org/stable/c/dce375f4afc348c310d171abcde7ec1499a4c26a>
- <https://git.kernel.org/stable/c/8d7ba71e46216b8657a82ca2ec118bc93812a4d0>
- <https://ubuntu.com/security/CVE-2026-23164>
- <https://www.cve.org/CVERecord?id=CVE-2026-23164>
- <https://git.kernel.org/linus/8d7ba71e46216b8657a82ca2ec118bc93812a4d0>
- <https://ubuntu.com/security/notices/USN-8162-1>
- <https://ubuntu.com/security/notices/USN-8180-1>
- <https://ubuntu.com/security/notices/USN-8180-2>
- <https://ubuntu.com/security/notices/USN-8186-1>
- <https://ubuntu.com/security/notices/USN-8187-1>
- <https://ubuntu.com/security/notices/USN-8188-1>
- <https://ubuntu.com/security/notices/USN-8180-3>
- <https://ubuntu.com/security/notices/USN-8180-4>
- <https://ubuntu.com/security/notices/USN-8180-5>
- <https://ubuntu.com/security/notices/USN-8243-1>

---

Data as of 2026-12-05T05:00:13.258Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
