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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-16T08:07:00.565Z
- Modified: 2026-06-17T06:44:41.960Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 09780a44093b53f9cbca76246af2e4ff0884e512; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 26ec2d66aecab8ff997b912c20247fedba4f5740; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 07b60f7452d2fa731737552937cb81821919f874; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 31d60afe2cc2b712dbefcaab6b7d6a47036f844e; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 27b760b81951d8d5e5c952a696af8574052b0709; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 5c0c81a313492b83bd0c038b8839b0e04eb87563; from 799dca34ac543485f581bd8464ec9b1c4f0f852a before 1e591ea072df7211f64542a09482b5f81cb3ad27; 4.9 (not affected: before 4.9; from 4.14.308 up to 4.14.*; from 4.19.276 up to 4.19.*; from 5.4.235 up to 5.4.*; from 5.10.173 up to 5.10.*; from 5.15.100 up to 5.15.*; from 6.1.18 up to 6.1.*; from 6.2.5 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.9 before 4.14.308; from 4.15 before 4.19.276; from 4.20 before 5.4.235; from 5.5 before 5.10.173; from 5.11 before 5.15.100; from 5.16 before 6.1.18; from 6.2 before 6.2.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2023-53271](https://www.cve.org/CVERecord?id=CVE-2023-53271), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53271](https://nvd.nist.gov/vuln/detail/CVE-2023-53271), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53271 · Whole record: https://cve.day/CVE-2023-53271.json · Rebuilt by cve.day 2026-11-25T22:58:34.806Z
