# CVE-2023-53468: ubifs: Fix memory leak in alloc\_wbufs()

> 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, NVD) `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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-01T11:42:38.673Z
- **Modified:** 2026-06-17T06:45:24.653Z

## Who should check

- Anyone running Linux \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 1f206002c6bc302bface871ef3f72c0bbcaa931c; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< bf50229494f0443b3f08427d7df63e5a7e2a796a; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 3e29634eb56e6547272fe4e568f63421f8b3b9fa; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 26ec45f1c504e15268383019df139d7983f1e67f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< e11f36d3bc4d23f620754a948fe7b82b63dcb185; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2
- Anyone running Linux 2.6.27

## Description

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

ubifs: Fix memory leak in alloc\_wbufs()

kmemleak reported a sequence of memory leaks, and show them as following:

  unreferenced object 0xffff8881575f8400 (size 1024):
    comm "mount", pid 19625, jiffies 4297119604 (age 20.383s)
    hex dump (first 32 bytes):
      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    backtrace:
      \[\<ffffffff8176cecd\>\] \_\_kmalloc+0x4d/0x150
      \[\<ffffffffa0406b2b\>\] ubifs\_mount+0x307b/0x7170 \[ubifs\]
      \[\<ffffffff819fa8fd\>\] legacy\_get\_tree+0xed/0x1d0
      \[\<ffffffff81936f2d\>\] vfs\_get\_tree+0x7d/0x230
      \[\<ffffffff819b2bd4\>\] path\_mount+0xdd4/0x17b0
      \[\<ffffffff819b37aa\>\] \_\_x64\_sys\_mount+0x1fa/0x270
      \[\<ffffffff83c14295\>\] do\_syscall\_64+0x35/0x80
      \[\<ffffffff83e0006a\>\] entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

  unreferenced object 0xffff8881798a6e00 (size 512):
    comm "mount", pid 19677, jiffies 4297121912 (age 37.816s)
    hex dump (first 32 bytes):
      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
      6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    backtrace:
      \[\<ffffffff8176cecd\>\] \_\_kmalloc+0x4d/0x150
      \[\<ffffffffa0418342\>\] ubifs\_wbuf\_init+0x52/0x480 \[ubifs\]
      \[\<ffffffffa0406ca5\>\] ubifs\_mount+0x31f5/0x7170 \[ubifs\]
      \[\<ffffffff819fa8fd\>\] legacy\_get\_tree+0xed/0x1d0
      \[\<ffffffff81936f2d\>\] vfs\_get\_tree+0x7d/0x230
      \[\<ffffffff819b2bd4\>\] path\_mount+0xdd4/0x17b0
      \[\<ffffffff819b37aa\>\] \_\_x64\_sys\_mount+0x1fa/0x270
      \[\<ffffffff83c14295\>\] do\_syscall\_64+0x35/0x80
      \[\<ffffffff83e0006a\>\] entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

The problem is that the ubifs\_wbuf\_init() returns an error in the
loop which in the alloc\_wbufs(), then the wbuf-\>buf and wbuf-\>inodes
that were successfully alloced before are not freed.

Fix it by adding error hanging path in alloc\_wbufs() which frees
the memory alloced before when ubifs\_wbuf\_init() returns an error.

## Affected and fixed versions

- Linux: \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 1f206002c6bc302bface871ef3f72c0bbcaa931c; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< bf50229494f0443b3f08427d7df63e5a7e2a796a; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 3e29634eb56e6547272fe4e568f63421f8b3b9fa; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 26ec45f1c504e15268383019df139d7983f1e67f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< e11f36d3bc4d23f620754a948fe7b82b63dcb185; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2 (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2 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-53468. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53468.md
Affected: Linux >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 1f206002c6bc302bface871ef3f72c0bbcaa931c; >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < bf50229494f0443b3f08427d7df63e5a7e2a796a; >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 3e29634eb56e6547272fe4e568f63421f8b3b9fa; >= 1e51764a3c2ac05a23a22b2…
Fixed in: Linux 1f206002c6bc302bface871ef3f72c0bbcaa931c, Linux 3e29634eb56e6547272fe4e568f63421f8b3b9fa, Linux 26ec45f1c504e15268383019df139d7983f1e67f, Linux 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2

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

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

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

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

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

Linux \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 1f206002c6bc302bface871ef3f72c0bbcaa931c; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< bf50229494f0443b3f08427d7df63e5a7e2a796a; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 3e29634eb56e6547272fe4e568f63421f8b3b9fa; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 26ec45f1c504e15268383019df139d7983f1e67f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< e11f36d3bc4d23f620754a948fe7b82b63dcb185; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2; Linux 2.6.27.

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

Yes. Fixed in Linux 1f206002c6bc302bface871ef3f72c0bbcaa931c, Linux 3e29634eb56e6547272fe4e568f63421f8b3b9fa, Linux 26ec45f1c504e15268383019df139d7983f1e67f, Linux 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2. Upgrade Linux to 4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2 or later.

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

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/1f206002c6bc302bface871ef3f72c0bbcaa931c>
- patch: <https://git.kernel.org/stable/c/bf50229494f0443b3f08427d7df63e5a7e2a796a>
- patch: <https://git.kernel.org/stable/c/3e29634eb56e6547272fe4e568f63421f8b3b9fa>
- patch: <https://git.kernel.org/stable/c/26ec45f1c504e15268383019df139d7983f1e67f>
- patch: <https://git.kernel.org/stable/c/e11f36d3bc4d23f620754a948fe7b82b63dcb185>
- patch: <https://git.kernel.org/stable/c/4a1ff3c5d04b9079b4f768d9a71b51c4af578dd2>

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

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