{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-54087","id":"CVE-2023-54087","title":"ubi: Fix possible null-ptr-deref in ubi_free_volume()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nubi: Fix possible null-ptr-deref in ubi_free_volume()\n\nIt willl cause null-ptr-deref in the following case:\n\nuif_init()\n  ubi_add_volume()\n    cdev_add() -> if it fails, call kill_volumes()\n    device_register()\n\nkill_volumes() -> if ubi_add_volume() fails call this function\n  ubi_free_volume()\n    cdev_del()\n    device_unregiste","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nubi: Fix possible null-ptr-deref in ubi_free_volume()\n\nIt willl cause null-ptr-deref in the following case:\n\nuif_init()\n  ubi_add_volume()\n    cdev_add() -> if it fails, call kill_volumes()\n    device_register()\n\nkill_volumes() -> if ubi_add_volume() fails call this function\n  ubi_free_volume()\n    cdev_del()\n    device_unregister() -> trying to delete a not added device,\n\t\t\t   it causes null-ptr-deref\n\nSo in ubi_free_volume(), it delete devices whether they are added\nor not, it will causes null-ptr-deref.\n\nHandle the error case whlie calling ubi_add_volume() to fix this\nproblem. If add volume fails, set the corresponding vol to null,\nso it can not be accessed in kill_volumes() and release the\nresource in ubi_add_volume() error path.","published":"2025-12-24T13:06:17.555Z","updated":"2026-10-28T02:30:35.866429054Z","reserved":"2025-12-24T13:02:52.515Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"5558bcf1c58720ca6e9d6198d921cb3aa337f038","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"45b2c5ca4d2edae70f19fdb086bd927840c4c309","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"234c53e57424992e657e6f4acc00d3df0983176f","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"fcbc795abe7897da4b5d2a6ab5010e36774b00c2","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"5ec4c8aca5a221756a9007deadfea92795319fee","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"2ea7195b195009ecf0046e55361f393ba96d02db","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"9eccdb0760cbcb4427b5303a83a3007de998af51","status":"affected","versionType":"git"},{"version":"801c135ce73d5df1caf3eca35b66a10824ae0707","lessThan":"c15859bfd326c10230f09cb48a17f8a35f190342","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.22","status":"affected"},{"version":"0","lessThan":"2.6.22","status":"unaffected","versionType":"semver"},{"version":"4.14.308","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.276","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.235","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.173","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.100","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.18","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2.5","lessThanOrEqual":"6.2.*","status":"unaffected","versionType":"semver"},{"version":"6.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/5558bcf1c58720ca6e9d6198d921cb3aa337f038","tags":["web"]},{"url":"https://git.kernel.org/stable/c/45b2c5ca4d2edae70f19fdb086bd927840c4c309","tags":["web"]},{"url":"https://git.kernel.org/stable/c/234c53e57424992e657e6f4acc00d3df0983176f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/fcbc795abe7897da4b5d2a6ab5010e36774b00c2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/5ec4c8aca5a221756a9007deadfea92795319fee","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2ea7195b195009ecf0046e55361f393ba96d02db","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9eccdb0760cbcb4427b5303a83a3007de998af51","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c15859bfd326c10230f09cb48a17f8a35f190342","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54087.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54087","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00221,"epssPercentile":0.12818,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-54087","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54087","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-54087","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-54087","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}