# CVE-2023-53271: ubi: Fix unreferenced object reported by kmemleak in ubi\_resize\_volume()

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-16T08:07:00.565Z
- **Modified:** 2026-06-17T06:44:41.960Z

## Who should check

- Anyone running Linux \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 09780a44093b53f9cbca76246af2e4ff0884e512; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 26ec2d66aecab8ff997b912c20247fedba4f5740; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 07b60f7452d2fa731737552937cb81821919f874; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 31d60afe2cc2b712dbefcaab6b7d6a47036f844e; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 27b760b81951d8d5e5c952a696af8574052b0709; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 5c0c81a313492b83bd0c038b8839b0e04eb87563; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 1e591ea072df7211f64542a09482b5f81cb3ad27
- Anyone running Linux 4.9

## Description

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

ubi: Fix unreferenced object reported by kmemleak in ubi\_resize\_volume()

There is a memory leaks problem reported by kmemleak:

unreferenced object 0xffff888102007a00 (size 128):
  comm "ubirsvol", pid 32090, jiffies 4298464136 (age 2361.231s)
  hex dump (first 32 bytes):
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
  backtrace:
\[\<ffffffff8176cecd\>\] \_\_kmalloc+0x4d/0x150
\[\<ffffffffa02a9a36\>\] ubi\_eba\_create\_table+0x76/0x170 \[ubi\]
\[\<ffffffffa029764e\>\] ubi\_resize\_volume+0x1be/0xbc0 \[ubi\]
\[\<ffffffffa02a3321\>\] ubi\_cdev\_ioctl+0x701/0x1850 \[ubi\]
\[\<ffffffff81975d2d\>\] \_\_x64\_sys\_ioctl+0x11d/0x170
\[\<ffffffff83c142a5\>\] do\_syscall\_64+0x35/0x80
\[\<ffffffff83e0006a\>\] entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

This is due to a mismatch between create and destroy interfaces, and
in detail that "new\_eba\_tbl" created by ubi\_eba\_create\_table() but
destroyed by kfree(), while will causing "new\_eba\_tbl-\>entries" not
freed.

Fix it by replacing kfree(new\_eba\_tbl) with
ubi\_eba\_destroy\_table(new\_eba\_tbl)

## Affected and fixed versions

- Linux: \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 09780a44093b53f9cbca76246af2e4ff0884e512; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 26ec2d66aecab8ff997b912c20247fedba4f5740; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 07b60f7452d2fa731737552937cb81821919f874; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 31d60afe2cc2b712dbefcaab6b7d6a47036f844e; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 27b760b81951d8d5e5c952a696af8574052b0709; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 5c0c81a313492b83bd0c038b8839b0e04eb87563; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 1e591ea072df7211f64542a09482b5f81cb3ad27 (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53271.md
Affected: Linux >= 799dca34ac543485f581bd8464ec9b1c4f0f852a, < 09780a44093b53f9cbca76246af2e4ff0884e512; >= 799dca34ac543485f581bd8464ec9b1c4f0f852a, < 26ec2d66aecab8ff997b912c20247fedba4f5740; >= 799dca34ac543485f581bd8464ec9b1c4f0f852a, < 07b60f7452d2fa731737552937cb81821919f874; >= 799dca34ac543485f581bd8…
Fixed in: Linux 09780a44093b53f9cbca76246af2e4ff0884e512, Linux 26ec2d66aecab8ff997b912c20247fedba4f5740, Linux 07b60f7452d2fa731737552937cb81821919f874, Linux 31d60afe2cc2b712dbefcaab6b7d6a47036f844e, Linux 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288, Linux 27b760b81951d8d5e5c952a696af8574052b0709, Linux 5c0c8…

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

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

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

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

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

Linux \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 09780a44093b53f9cbca76246af2e4ff0884e512; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 26ec2d66aecab8ff997b912c20247fedba4f5740; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 07b60f7452d2fa731737552937cb81821919f874; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 31d60afe2cc2b712dbefcaab6b7d6a47036f844e; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 27b760b81951d8d5e5c952a696af8574052b0709; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 5c0c81a313492b83bd0c038b8839b0e04eb87563; \>= 799dca34ac543485f581bd8464ec9b1c4f0f852a, \< 1e591ea072df7211f64542a09482b5f81cb3ad27; Linux 4.9.

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

Yes. Fixed in Linux 09780a44093b53f9cbca76246af2e4ff0884e512, Linux 26ec2d66aecab8ff997b912c20247fedba4f5740, Linux 07b60f7452d2fa731737552937cb81821919f874, Linux 31d60afe2cc2b712dbefcaab6b7d6a47036f844e, Linux 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288, Linux 27b760b81951d8d5e5c952a696af8574052b0709, Linux 5c0c81a313492b83bd0c038b8839b0e04eb87563, Linux 1e591ea072df7211f64542a09482b5f81cb3ad27. Upgrade Linux to 1e591ea072df7211f64542a09482b5f81cb3ad27 or later.

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

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/09780a44093b53f9cbca76246af2e4ff0884e512>
- patch: <https://git.kernel.org/stable/c/26ec2d66aecab8ff997b912c20247fedba4f5740>
- patch: <https://git.kernel.org/stable/c/07b60f7452d2fa731737552937cb81821919f874>
- patch: <https://git.kernel.org/stable/c/31d60afe2cc2b712dbefcaab6b7d6a47036f844e>
- patch: <https://git.kernel.org/stable/c/95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288>
- patch: <https://git.kernel.org/stable/c/27b760b81951d8d5e5c952a696af8574052b0709>
- patch: <https://git.kernel.org/stable/c/5c0c81a313492b83bd0c038b8839b0e04eb87563>
- patch: <https://git.kernel.org/stable/c/1e591ea072df7211f64542a09482b5f81cb3ad27>

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

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