# CVE-2024-50084: net: microchip: vcap api: Fix memory leaks in vcap\_api\_encode\_rule\_test()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-401, CWE-416
- **Published:** 2024-10-29T00:50:27.226Z
- **Modified:** 2026-06-17T08:03:32.537Z

## Who should check

- Anyone running Linux \>= b0804c286ccfcf5f5c004d5bf8a54c0508b5e86b, \< 20b5342de51bda794791e013b90754774003a515; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 170792097bb21e5da77443b6a03d35489813eabe; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 217a3d98d1e9891a8b1438a27dfbc64ddf01f691; f7fe95f40c85311c98913fe6ae2c56adb7f767a7; \>= 6.6.51, \< 6.6.58; \>= 6.10.10, \< 6.11
- Anyone running Linux 6.11

## Description

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

net: microchip: vcap api: Fix memory leaks in vcap\_api\_encode\_rule\_test()

Commit a3c1e45156ad ("net: microchip: vcap: Fix use-after-free error in
kunit test") fixed the use-after-free error, but introduced below
memory leaks by removing necessary vcap\_free\_rule(), add it to fix it.

	unreferenced object 0xffffff80ca58b700 (size 192):
	  comm "kunit\_try\_catch", pid 1215, jiffies 4294898264
	  hex dump (first 32 bytes):
	    00 12 7a 00 05 00 00 00 0a 00 00 00 64 00 00 00  ..z.........d...
	    00 00 00 00 00 00 00 00 00 04 0b cc 80 ff ff ff  ................
	  backtrace (crc 9c09c3fe):
	    \[\<0000000052a0be73\>\] kmemleak\_alloc+0x34/0x40
	    \[\<0000000043605459\>\] \_\_kmalloc\_cache\_noprof+0x26c/0x2f4
	    \[\<0000000040a01b8d\>\] vcap\_alloc\_rule+0x3cc/0x9c4
	    \[\<000000003fe86110\>\] vcap\_api\_encode\_rule\_test+0x1ac/0x16b0
	    \[\<00000000b3595fc4\>\] kunit\_try\_run\_case+0x13c/0x3ac
	    \[\<0000000010f5d2bf\>\] kunit\_generic\_run\_threadfn\_adapter+0x80/0xec
	    \[\<00000000c5d82c9a\>\] kthread+0x2e8/0x374
	    \[\<00000000f4287308\>\] ret\_from\_fork+0x10/0x20
	unreferenced object 0xffffff80cc0b0400 (size 64):
	  comm "kunit\_try\_catch", pid 1215, jiffies 4294898265
	  hex dump (first 32 bytes):
	    80 04 0b cc 80 ff ff ff 18 b7 58 ca 80 ff ff ff  ..........X.....
	    39 00 00 00 02 00 00 00 06 05 04 03 02 01 ff ff  9...............
	  backtrace (crc daf014e9):
	    \[\<0000000052a0be73\>\] kmemleak\_alloc+0x34/0x40
	    \[\<0000000043605459\>\] \_\_kmalloc\_cache\_noprof+0x26c/0x2f4
	    \[\<000000000ff63fd4\>\] vcap\_rule\_add\_key+0x2cc/0x528
	    \[\<00000000dfdb1e81\>\] vcap\_api\_encode\_rule\_test+0x224/0x16b0
	    \[\<00000000b3595fc4\>\] kunit\_try\_run\_case+0x13c/0x3ac
	    \[\<0000000010f5d2bf\>\] kunit\_generic\_run\_threadfn\_adapter+0x80/0xec
	    \[\<00000000c5d82c9a\>\] kthread+0x2e8/0x374
	    \[\<00000000f4287308\>\] ret\_from\_fork+0x10/0x20
	unreferenced object 0xffffff80cc0b0700 (size 64):
	  comm "kunit\_try\_catch", pid 1215, jiffies 4294898265
	  hex dump (first 32 bytes):
	    80 07 0b cc 80 ff ff ff 28 b7 58 ca 80 ff ff ff  ........(.X.....
	    3c 00 00 00 00 00 00 00 01 2f 03 b3 ec ff ff ff  \<......../......
	  backtrace (crc 8d877792):
	    \[\<0000000052a0be73\>\] kmemleak\_alloc+0x34/0x40
	    \[\<0000000043605459\>\] \_\_kmalloc\_cache\_noprof+0x26c/0x2f4
	    \[\<000000006eadfab7\>\] vcap\_rule\_add\_action+0x2d0/0x52c
	    \[\<00000000323475d1\>\] vcap\_api\_encode\_rule\_test+0x4d4/0x16b0
	    \[\<00000000b3595fc4\>\] kunit\_try\_run\_case+0x13c/0x3ac
	    \[\<0000000010f5d2bf\>\] kunit\_generic\_run\_threadfn\_adapter+0x80/0xec
	    \[\<00000000c5d82c9a\>\] kthread+0x2e8/0x374
	    \[\<00000000f4287308\>\] ret\_from\_fork+0x10/0x20
	unreferenced object 0xffffff80cc0b0900 (size 64):
	  comm "kunit\_try\_catch", pid 1215, jiffies 4294898266
	  hex dump (first 32 bytes):
	    80 09 0b cc 80 ff ff ff 80 06 0b cc 80 ff ff ff  ................
	    7d 00 00 00 01 00 00 00 00 00 00 00 ff 00 00 00  }...............
	  backtrace (crc 34181e56):
	    \[\<0000000052a0be73\>\] kmemleak\_alloc+0x34/0x40
	    \[\<0000000043605459\>\] \_\_kmalloc\_cache\_noprof+0x26c/0x2f4
	    \[\<000000000ff63fd4\>\] vcap\_rule\_add\_key+0x2cc/0x528
	    \[\<00000000991e3564\>\] vcap\_val\_rule+0xcf0/0x13e8
	    \[\<00000000fc9868e5\>\] vcap\_api\_encode\_rule\_test+0x678/0x16b0
	    \[\<00000000b3595fc4\>\] kunit\_try\_run\_case+0x13c/0x3ac
	    \[\<0000000010f5d2bf\>\] kunit\_generic\_run\_threadfn\_adapter+0x80/0xec
	    \[\<00000000c5d82c9a\>\] kthread+0x2e8/0x374
	    \[\<00000000f4287308\>\] ret\_from\_fork+0x10/0x20
	unreferenced object 0xffffff80cc0b0980 (size 64):
	  comm "kunit\_try\_catch", pid 1215, jiffies 4294898266
	  hex dump (first 32 bytes):
	    18 b7 58 ca 80 ff ff ff 00 09 0b cc 80 ff ff ff  ..X.............
	    67 00 00 00 00 00 00 00 01 01 74 88 c0 ff ff ff  g.........t.....
	  backtrace (crc 275fd9be):
	    \[\<0000000052a0be73\>\] kmemleak\_alloc+0x34/0x40
	    \[\<0000000043605459\>\] \_\_kmalloc\_cache\_noprof+0x26c/0x2f4
	    \[\<000000000ff63fd4\>\] vcap\_rule\_add\_key+0x2cc/0x528
	    \[\<000000001396a1a2\>\] test\_add\_de
---truncated---

## Affected and fixed versions

- Linux: \>= b0804c286ccfcf5f5c004d5bf8a54c0508b5e86b, \< 20b5342de51bda794791e013b90754774003a515; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 170792097bb21e5da77443b6a03d35489813eabe; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 217a3d98d1e9891a8b1438a27dfbc64ddf01f691; f7fe95f40c85311c98913fe6ae2c56adb7f767a7; \>= 6.6.51, \< 6.6.58; \>= 6.10.10, \< 6.11 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 6.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50084.md
Affected: Linux >= b0804c286ccfcf5f5c004d5bf8a54c0508b5e86b, < 20b5342de51bda794791e013b90754774003a515; >= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, < 170792097bb21e5da77443b6a03d35489813eabe; >= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, < 217a3d98d1e9891a8b1438a27dfbc64ddf01f691; f7fe95f40c85311c98913fe6ae…
Fixed in: Linux 20b5342de51bda794791e013b90754774003a515, Linux 170792097bb21e5da77443b6a03d35489813eabe, Linux 217a3d98d1e9891a8b1438a27dfbc64ddf01f691, Linux 6.6.58, Linux 6.11

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-2024-50084 being exploited?

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

### How serious is CVE-2024-50084?

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

### Which versions are affected by CVE-2024-50084?

Linux \>= b0804c286ccfcf5f5c004d5bf8a54c0508b5e86b, \< 20b5342de51bda794791e013b90754774003a515; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 170792097bb21e5da77443b6a03d35489813eabe; \>= a3c1e45156ad39f225cd7ddae0f81230a3b1e657, \< 217a3d98d1e9891a8b1438a27dfbc64ddf01f691; f7fe95f40c85311c98913fe6ae2c56adb7f767a7; \>= 6.6.51, \< 6.6.58; \>= 6.10.10, \< 6.11; Linux 6.11.

### Is there a fix for CVE-2024-50084?

Yes. Fixed in Linux 20b5342de51bda794791e013b90754774003a515, Linux 170792097bb21e5da77443b6a03d35489813eabe, Linux 217a3d98d1e9891a8b1438a27dfbc64ddf01f691, Linux 6.6.58, Linux 6.11. Upgrade Linux to 6.11 or later.

### How do I check if I'm affected by CVE-2024-50084?

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/20b5342de51bda794791e013b90754774003a515>
- patch: <https://git.kernel.org/stable/c/170792097bb21e5da77443b6a03d35489813eabe>
- patch: <https://git.kernel.org/stable/c/217a3d98d1e9891a8b1438a27dfbc64ddf01f691>

## 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-2024-50084>

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