CVE-2023-54087

Source
https://cve.org/CVERecord?id=CVE-2023-54087
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54087.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54087
Downstream
Published
2025-12-24T13:06:17.555Z
Modified
2026-03-09T23:56:50.912857Z
Summary
ubi: Fix possible null-ptr-deref in ubi_free_volume()
Details

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

ubi: Fix possible null-ptr-deref in ubifreevolume()

It willl cause null-ptr-deref in the following case:

uifinit() ubiaddvolume() cdevadd() -> if it fails, call killvolumes() deviceregister()

killvolumes() -> if ubiaddvolume() fails call this function ubifreevolume() cdevdel() device_unregister() -> trying to delete a not added device, it causes null-ptr-deref

So in ubifreevolume(), it delete devices whether they are added or not, it will causes null-ptr-deref.

Handle the error case whlie calling ubiaddvolume() to fix this problem. If add volume fails, set the corresponding vol to null, so it can not be accessed in killvolumes() and release the resource in ubiadd_volume() error path.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54087.json"
}
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
5558bcf1c58720ca6e9d6198d921cb3aa337f038
Fixed
45b2c5ca4d2edae70f19fdb086bd927840c4c309
Fixed
234c53e57424992e657e6f4acc00d3df0983176f
Fixed
fcbc795abe7897da4b5d2a6ab5010e36774b00c2
Fixed
5ec4c8aca5a221756a9007deadfea92795319fee
Fixed
2ea7195b195009ecf0046e55361f393ba96d02db
Fixed
9eccdb0760cbcb4427b5303a83a3007de998af51
Fixed
c15859bfd326c10230f09cb48a17f8a35f190342

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54087.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-54087.json"