# CVE-2023-54115: pcmcia: rsrc\_nonstatic: Fix memory leak in nonstatic\_release\_resource\_db()

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:06:36.892Z
- **Modified:** 2026-06-17T06:46:49.730Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bde0b6da7bd893c37afaee3555cc3ac3be582313; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2d45e2be0be35a3d66863563ed2591ee18a6897e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 22100df1d57f04cf2370d5347b9ef547f481deea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04bb8af40a7729c398ed4caea7e66cedd2881719; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 97fd1c8e9c5aa833aab7e836760bc13103afa892; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8a80cf06b4bb0396212289d651b384c949f09d0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd53a1f28faba2c4806c055e706a7721006291c1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c85fd9422fe0f5d667305efb27f56d09eab120b0
- Anyone running Linux 2.6.12

## Description

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

pcmcia: rsrc\_nonstatic: Fix memory leak in nonstatic\_release\_resource\_db()

When nonstatic\_release\_resource\_db() frees all resources associated
with an PCMCIA socket, it forgets to free socket\_data too, causing
a memory leak observable with kmemleak:

unreferenced object 0xc28d1000 (size 64):
  comm "systemd-udevd", pid 297, jiffies 4294898478 (age 194.484s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 f0 85 0e c3 00 00 00 00  ................
    00 00 00 00 0c 10 8d c2 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<ffda4245\>\] \_\_kmem\_cache\_alloc\_node+0x2d7/0x4a0
    \[\<7e51f0c8\>\] kmalloc\_trace+0x31/0xa4
    \[\<d52b4ca0\>\] nonstatic\_init+0x24/0x1a4 \[pcmcia\_rsrc\]
    \[\<a2f13e08\>\] pcmcia\_register\_socket+0x200/0x35c \[pcmcia\_core\]
    \[\<a728be1b\>\] yenta\_probe+0x4d8/0xa70 \[yenta\_socket\]
    \[\<c48fac39\>\] pci\_device\_probe+0x99/0x194
    \[\<84b7c690\>\] really\_probe+0x181/0x45c
    \[\<8060fe6e\>\] \_\_driver\_probe\_device+0x75/0x1f4
    \[\<b9b76f43\>\] driver\_probe\_device+0x28/0xac
    \[\<648b766f\>\] \_\_driver\_attach+0xeb/0x1e4
    \[\<6e9659eb\>\] bus\_for\_each\_dev+0x61/0xb4
    \[\<25a669f3\>\] driver\_attach+0x1e/0x28
    \[\<d8671d6b\>\] bus\_add\_driver+0x102/0x20c
    \[\<df0d323c\>\] driver\_register+0x5b/0x120
    \[\<942cd8a4\>\] \_\_pci\_register\_driver+0x44/0x4c
    \[\<e536027e\>\] \_\_UNIQUE\_ID\_\_\_addressable\_cleanup\_module188+0x1c/0xfffff000 \[iTCO\_vendor\_support\]

Fix this by freeing socket\_data too.

Tested on a Acer Travelmate 4002WLMi by manually binding/unbinding
the yenta\_cardbus driver (yenta\_socket).

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bde0b6da7bd893c37afaee3555cc3ac3be582313; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2d45e2be0be35a3d66863563ed2591ee18a6897e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 22100df1d57f04cf2370d5347b9ef547f481deea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04bb8af40a7729c398ed4caea7e66cedd2881719; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 97fd1c8e9c5aa833aab7e836760bc13103afa892; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8a80cf06b4bb0396212289d651b384c949f09d0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd53a1f28faba2c4806c055e706a7721006291c1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c85fd9422fe0f5d667305efb27f56d09eab120b0 (cvelist)
- Linux: 2.6.12 (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-54115. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54115.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bde0b6da7bd893c37afaee3555cc3ac3be582313; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2d45e2be0be35a3d66863563ed2591ee18a6897e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 22100df1d57f04cf2370d5347b9ef547f481deea; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 2d45e2be0be35a3d66863563ed2591ee18a6897e, Linux 22100df1d57f04cf2370d5347b9ef547f481deea, Linux 04bb8af40a7729c398ed4caea7e66cedd2881719, Linux 97fd1c8e9c5aa833aab7e836760bc13103afa892

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bde0b6da7bd893c37afaee3555cc3ac3be582313; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2d45e2be0be35a3d66863563ed2591ee18a6897e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 22100df1d57f04cf2370d5347b9ef547f481deea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 04bb8af40a7729c398ed4caea7e66cedd2881719; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 97fd1c8e9c5aa833aab7e836760bc13103afa892; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8a80cf06b4bb0396212289d651b384c949f09d0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd53a1f28faba2c4806c055e706a7721006291c1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c85fd9422fe0f5d667305efb27f56d09eab120b0; Linux 2.6.12.

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

Yes. Fixed in Linux 2d45e2be0be35a3d66863563ed2591ee18a6897e, Linux 22100df1d57f04cf2370d5347b9ef547f481deea, Linux 04bb8af40a7729c398ed4caea7e66cedd2881719, Linux 97fd1c8e9c5aa833aab7e836760bc13103afa892. No fix listed yet: follow the vendor advisory.

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

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/bde0b6da7bd893c37afaee3555cc3ac3be582313>
- other: <https://git.kernel.org/stable/c/2d45e2be0be35a3d66863563ed2591ee18a6897e>
- other: <https://git.kernel.org/stable/c/22100df1d57f04cf2370d5347b9ef547f481deea>
- other: <https://git.kernel.org/stable/c/04bb8af40a7729c398ed4caea7e66cedd2881719>
- other: <https://git.kernel.org/stable/c/97fd1c8e9c5aa833aab7e836760bc13103afa892>
- other: <https://git.kernel.org/stable/c/e8a80cf06b4bb0396212289d651b384c949f09d0>
- other: <https://git.kernel.org/stable/c/fd53a1f28faba2c4806c055e706a7721006291c1>
- other: <https://git.kernel.org/stable/c/c85fd9422fe0f5d667305efb27f56d09eab120b0>

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

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