# CVE-2023-53303: net: microchip: vcap api: Fix possible memory leak for vcap\_dup\_rule()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-16T08:11:33.842Z
- **Modified:** 2026-06-17T06:44:47.617Z

## Who should check

- Anyone running Linux \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4; \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< 281f65d29d6da1a9b6907fb0b145aaf34f4e4822
- Anyone running Linux 6.3

## Description

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

net: microchip: vcap api: Fix possible memory leak for vcap\_dup\_rule()

Inject fault When select CONFIG\_VCAP\_KUNIT\_TEST, the below memory leak
occurs. If kzalloc() for duprule succeeds, but the following
kmemdup() fails, the duprule, ckf and caf memory will be leaked. So kfree
them in the error path.

unreferenced object 0xffff122744c50600 (size 192):
  comm "kunit\_try\_catch", pid 346, jiffies 4294896122 (age 911.812s)
  hex dump (first 32 bytes):
    10 27 00 00 04 00 00 00 1e 00 00 00 2c 01 00 00  .'..........,...
    00 00 00 00 00 00 00 00 18 06 c5 44 27 12 ff ff  ...........D'...
  backtrace:
    \[\<00000000394b0db8\>\] \_\_kmem\_cache\_alloc\_node+0x274/0x2f8
    \[\<0000000001bedc67\>\] kmalloc\_trace+0x38/0x88
    \[\<00000000b0612f98\>\] vcap\_dup\_rule+0x50/0x460
    \[\<000000005d2d3aca\>\] vcap\_add\_rule+0x8cc/0x1038
    \[\<00000000eef9d0f8\>\] test\_vcap\_xn\_rule\_creator.constprop.0.isra.0+0x238/0x494
    \[\<00000000cbda607b\>\] vcap\_api\_rule\_remove\_in\_front\_test+0x1ac/0x698
    \[\<00000000c8766299\>\] kunit\_try\_run\_case+0xe0/0x20c
    \[\<00000000c4fe9186\>\] kunit\_generic\_run\_threadfn\_adapter+0x50/0x94
    \[\<00000000f6864acf\>\] kthread+0x2e8/0x374
    \[\<0000000022e639b3\>\] ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4; \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< 281f65d29d6da1a9b6907fb0b145aaf34f4e4822 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 281f65d29d6da1a9b6907fb0b145aaf34f4e4822 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53303.md
Affected: Linux >= 814e7693207f1bd936d600f9b5467f133e3d6e40, < a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4; >= 814e7693207f1bd936d600f9b5467f133e3d6e40, < 281f65d29d6da1a9b6907fb0b145aaf34f4e4822; Linux 6.3
Fixed in: Linux 281f65d29d6da1a9b6907fb0b145aaf34f4e4822

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-53303 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4; \>= 814e7693207f1bd936d600f9b5467f133e3d6e40, \< 281f65d29d6da1a9b6907fb0b145aaf34f4e4822; Linux 6.3.

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

Yes. Fixed in Linux 281f65d29d6da1a9b6907fb0b145aaf34f4e4822. Upgrade Linux to 281f65d29d6da1a9b6907fb0b145aaf34f4e4822 or later.

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

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

- patch: <https://git.kernel.org/stable/c/a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4>
- patch: <https://git.kernel.org/stable/c/281f65d29d6da1a9b6907fb0b145aaf34f4e4822>

## 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-53303>

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