CVE-2023-53826

Source
https://cve.org/CVERecord?id=CVE-2023-53826
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53826.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53826
Downstream
Published
2025-12-09T01:29:39.679Z
Modified
2026-03-09T23:50:27.058042Z
Summary
ubi: Fix UAF wear-leveling entry in eraseblk_count_seq_show()
Details

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

ubi: Fix UAF wear-leveling entry in eraseblkcountseq_show()

Wear-leveling entry could be freed in error path, which may be accessed again in eraseblkcountseq_show(), for example:

_eraseworker eraseblkcountseqshow wl = ubi->lookuptbl[*blocknumber] if (wl) wlentrydestroy ubi->lookuptbl[e->pnum] = NULL kmemcachefree(ubiwlentryslab, e) erasecount = wl->ec // UAF!

Wear-leveling entry updating/accessing in ubi->lookuptbl should be protected by ubi->wllock, fix it by adding ubi->wllock to serialize wl entry accessing between wlentrydestroy() and eraseblkcountseq_show().

Fetch a reproducer in [Link].

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53826.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
801c135ce73d5df1caf3eca35b66a10824ae0707
Fixed
3f9b63dfce44a7c3c095dd93d910408e07ab1845
Fixed
84250da1c63cb7d421a3b4812b5c2ce2e47d31a1
Fixed
1cb14c06d6035539ef4215c4ba0871aea71d7c38
Fixed
9d448dd6bcb61a508204b57ea1f454ba9bac2f24
Fixed
79548ccdd992707879b4b683b7251c58ddf26f12
Fixed
84253f3c2dad6be10d30c92626c763d9a9f512ad
Fixed
a100de2974d208cfca032179b02ed4d1a0a7f143
Fixed
a240bc5c43130c6aa50831d7caaa02a1d84e1bce

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53826.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.22
Fixed
4.14.308
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.276
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.235
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.173
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.100
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.18
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53826.json"