{"id":"CVE-2023-54087","published":"2025-12-24T13:06:17Z","modified":"2026-05-11T19:55:14Z","title":"ubi: Fix possible null-ptr-deref in ubi_free_volume()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00221,"percentile":0.12546,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5558bcf1c58720ca6e9d6198d921cb3aa337f038","tags":[]},{"url":"https://git.kernel.org/stable/c/45b2c5ca4d2edae70f19fdb086bd927840c4c309","tags":[]},{"url":"https://git.kernel.org/stable/c/234c53e57424992e657e6f4acc00d3df0983176f","tags":[]},{"url":"https://git.kernel.org/stable/c/fcbc795abe7897da4b5d2a6ab5010e36774b00c2","tags":[]},{"url":"https://git.kernel.org/stable/c/5ec4c8aca5a221756a9007deadfea92795319fee","tags":[]},{"url":"https://git.kernel.org/stable/c/2ea7195b195009ecf0046e55361f393ba96d02db","tags":[]},{"url":"https://git.kernel.org/stable/c/9eccdb0760cbcb4427b5303a83a3007de998af51","tags":[]},{"url":"https://git.kernel.org/stable/c/c15859bfd326c10230f09cb48a17f8a35f190342","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 5558bcf1c58720ca6e9d6198d921cb3aa337f038",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 45b2c5ca4d2edae70f19fdb086bd927840c4c309",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 234c53e57424992e657e6f4acc00d3df0983176f",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < fcbc795abe7897da4b5d2a6ab5010e36774b00c2",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 5ec4c8aca5a221756a9007deadfea92795319fee",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 2ea7195b195009ecf0046e55361f393ba96d02db",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < 9eccdb0760cbcb4427b5303a83a3007de998af51",">= 801c135ce73d5df1caf3eca35b66a10824ae0707, < c15859bfd326c10230f09cb48a17f8a35f190342"]},{"vendor":"Linux","product":"Linux","versions":["2.6.22"]}],"euvd":{"id":"EUVD-2023-60358","exploited":false,"provenance":"source"}}