CVE-2023-53271

ubi: Fix unreferenced object reported by kmemleak in ubi_resize_volume()

5.5 medium EPSS 0.17%

Published 16 Sep 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-53271

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53271 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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)

Severity (CVSS)

5.5 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.16% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 14 Jan 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 09780a44093b53f9cbca76246af2e4ff0884e512
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 26ec2d66aecab8ff997b912c20247fedba4f5740
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 07b60f7452d2fa731737552937cb81821919f874
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 31d60afe2cc2b712dbefcaab6b7d6a47036f844e
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 95a72417dd13ebcdcb1bd0c5d4d15f7c5bfbb288
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 27b760b81951d8d5e5c952a696af8574052b0709
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 5c0c81a313492b83bd0c038b8839b0e04eb87563
affected from 799dca34ac543485f581bd8464ec9b1c4f0f852a, before 1e591ea072df7211f64542a09482b5f81cb3ad27
Other versions: unaffected
Linux
affected 4.9
unaffected before 4.9
unaffected from 4.14.308 up to and including 4.14.*
unaffected from 4.19.276 up to and including 4.19.*
unaffected from 5.4.235 up to and including 5.4.*
unaffected from 5.10.173 up to and including 5.10.*
unaffected from 5.15.100 up to and including 5.15.*
unaffected from 6.1.18 up to and including 6.1.*
unaffected from 6.2.5 up to and including 6.2.*
unaffected 6.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53271 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53271

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53271
trivy image --scanners vuln IMAGE | grep CVE-2023-53271

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53271 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.