CVE-2023-53303: net: microchip: vcap api: Fix possible memory leak for vcap_dup_rule()
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
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel memory leak in the Microchip VCAP API. Under a specific allocation-failure path, memory is not freed correctly. The stated impact is availability, not data theft or privilege escalation. Public sources rate it medium with local, low-privilege access required.
Executive priority
Treat as a normal kernel maintenance item unless exposed systems rely on the affected networking code. It can affect availability, but public evidence does not support emergency response or internet-scale exploitation.
Technical view
The issue is in vcap_dup_rule(). If kzalloc() succeeds and a later kmemdup() fails, duprule, ckf, and caf allocations can leak. The source describes this occurring during CONFIG_VCAP_KUNIT_TEST fault injection. CVSS 3.1 is 5.5: local attack vector, low privileges, high availability impact.
Likely exposure
Exposure is most relevant to Linux kernels in the affected range using the Microchip VCAP API code. Public metadata lists Linux 6.3 through fixed stable updates, but version evidence is sparse. Systems without this kernel code path are less likely to be affected.
Exploitation context
The bundle does not show active exploitation, and KEV status is false. Available evidence describes a memory leak found through KUnit fault injection, not a public exploit. The CVSS vector requires local, low-privilege access and targets availability.
Researcher notes
Focus validation on the vcap_dup_rule() allocation error path and whether the fix frees all partially allocated structures. The affected-version data in the bundle is limited, so distro backport confirmation matters more than raw upstream version comparison.
Mitigation direction
Upgrade to a kernel or distro release containing the referenced stable fixes.
Consult Linux distribution advisories for exact backported fixed package versions.
For custom kernels, apply the referenced upstream stable commits.
Prioritize systems where Microchip VCAP networking code is enabled or relevant.
Validation and detection
Inventory running Linux kernel versions against vendor fixed-release guidance.
Check whether Microchip VCAP API code is built into deployed kernels.
Confirm patched kernels include one of the referenced stable commits or distro backports.
Review vulnerability scanner findings for kernel version false positives.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-401: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-401 · source CWE mapping
Missing Release of Memory after Effective Lifetime
Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.