Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-53481

published high CVSS 3.1 · 7.8

ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed

Published
01 Oct 2025, 11:42:49 UTC
Updated
15 Oct 2026, 21:41:28 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < b40d2fbf47af58377e898b5062077a47bb28a132 · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < f006f596fe851c3b6aae60b79f89f89f0e515d2f · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < b5be23f6ae610bdb262160a1f294afee6d0e6a69 · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 8a18856e074479bd050b01e688c58defadce7ab0 · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 3afaaf6f5867dc4ad383808d4053f428ec7b867d · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < cc4bc532acda66189bddc03b3fe1ad689d9a48a2 · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 5af1c643184a5d09ff5b3f334077a4d0a163c677 · 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 4d57a7333e26040f2b583983e1970d9d460e56b0 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 4.14.308 through 4.14.* (unaffected · semver) · 4.19.276 through 4.19.* (unaffected · semver) · 5.4.235 through 5.4.* (unaffected · semver) · 5.10.173 through 5.10.* (unaffected · semver) · 5.15.100 through 5.15.* (unaffected · semver) · 6.1.18 through 6.1.* (unaffected · semver) · 6.2.5 through 6.2.* (unaffected · semver) · 6.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2023-1987 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2023-028 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2023-043 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2-2023-1987
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-028
Show 11 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-043
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2-2023-1987
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-028
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-043
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2-2023-1987
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2023-028
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.4-2023-043
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2-2023-1987
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-028
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-043

Description

In the Linux kernel, the following vulnerability has been resolved: ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed Following process will trigger an infinite loop in ubi_wl_put_peb(): ubifs_bgt ubi_bgt ubifs_leb_unmap ubi_leb_unmap ubi_eba_unmap_leb ubi_wl_put_peb wear_leveling_worker e1 = rb_entry(rb_first(&ubi->used) e2 = get_peb_for_wl(ubi) ubi_io_read_vid_hdr // return err (flash fault) out_error: ubi->move_from = ubi->move_to = NULL wl_entry_destroy(ubi, e1) ubi->lookuptbl[e->pnum] = NULL retry: e = ubi->lookuptbl[pnum]; // return NULL if (e == ubi->move_from) { // NULL == NULL gets true goto retry; // infinite loop !!! $ top PID USER PR NI VIRT RES SHR S %CPU %MEM COMMAND 7676 root 20 0 0 0 0 R 100.0 0.0 ubifs_bgt0_0 Fix it by: 1) Letting ubi_wl_put_peb() returns directly if wearl leveling entry has been removed from 'ubi->lookuptbl'. 2) Using 'ubi->wl_lock' protecting wl entry deletion to preventing an use-after-free problem for wl entry in ubi_wl_put_peb(). Fetch a reproducer in [Link].

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

3

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is reached only from local activity — file writes/unlinks on a mounted UBIFS filesystem driving `ubifs_leb_unmap()`, or `UBI_IOCEBER`/`UBI_IOCEBUNMAP` ioctls on `/dev/ubiX_Y`. There is no network-facing consumer of the UBI wear-leveling layer. AC:L - The attacker supplies both the concurrency (unbounded parallel LEB unmaps via ordinary filesystem writes/deletes or a tight ioctl loop) and sustained write pressure that keeps the wear-leveling worker running continuously on flash whose read/ECC errors are the expected operating condition UBI is built to handle; once the error path fires, the `NULL == ubi->move_from` comparison is deterministic, not probabilistic. PR:L - Any unprivileged local user with write access to a UBIFS mount (the standard writable data/rootfs partition on embedded, automotive and IoT devices) can drive `ubi_eba_unmap_leb()` through the UBIFS journal and background thread; the direct ioctl path has no capability check either, only `FMODE_WRITE` on the volume node. UI:N - Exploitation needs only the attacker's own file I/O or ioctls against an already-mounted UBI/UBIFS volume; no victim action, mount of attacker-supplied media, or administrator interaction is required. S:U - The hang and the freed-slab-object corruption are confined to the kernel's own security authority on the affected host, with no crossing of a VM, IOMMU, or sandbox boundary. C:H - The use-after-free on the `ubi_wl_entry_slab` object lets the attacker read fields (`e->pnum`, `e->ec`, rbtree links) out of memory that has been freed and can be reallocated with attacker-groomed content, giving a path to kernel memory disclosure. I:H - `rb_erase(&e->u.rb, &ubi->used)` and the subsequent `schedule_erase()` operate on the freed entry, writing rbtree pointer values through a dangling object and re-queuing it — a classic UAF write primitive usable for heap corruption and control-flow hijack. A:H - The `goto retry` loop never terminates, pinning a CPU at 100% in an unkillable kernel thread while holding `ubi->fm_protect` and the LEB write lock, which permanently hangs all I/O to the UBI device and its UBIFS filesystems until reboot; the concurrent UAF independently causes kernel crashes.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < b40d2fbf47af58377e898b5062077a47bb28a132 (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < f006f596fe851c3b6aae60b79f89f89f0e515d2f (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < b5be23f6ae610bdb262160a1f294afee6d0e6a69 (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 8a18856e074479bd050b01e688c58defadce7ab0 (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 3afaaf6f5867dc4ad383808d4053f428ec7b867d (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < cc4bc532acda66189bddc03b3fe1ad689d9a48a2 (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 5af1c643184a5d09ff5b3f334077a4d0a163c677 (affected · git)43f9b25a9cdd7b177f77f026b1461abd1abbd174 to < 4d57a7333e26040f2b583983e1970d9d460e56b0 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)4.14.308 through 4.14.* (unaffected · semver)4.19.276 through 4.19.* (unaffected · semver)5.4.235 through 5.4.* (unaffected · semver)5.10.173 through 5.10.* (unaffected · semver)5.15.100 through 5.15.* (unaffected · semver)6.1.18 through 6.1.* (unaffected · semver)6.2.5 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

2

Linux · cna

ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
0d0f3d5dd1a80a770bf1e1f85c2c7457293f20121cf90565e4d1178f8cdbdfb1
Ingested
15 Oct 2026, 23:26:24 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected