{"id":"DEBIAN-CVE-2023-54087","details":"In the Linux kernel, the following vulnerability has been resolved:  ubi: Fix possible null-ptr-deref in ubi_free_volume()  It willl cause null-ptr-deref in the following case:  uif_init()   ubi_add_volume()     cdev_add() -\u003e if it fails, call kill_volumes()     device_register()  kill_volumes() -\u003e if ubi_add_volume() fails call this function   ubi_free_volume()     cdev_del()     device_unregister() -\u003e trying to delete a not added device, \t\t\t   it causes null-ptr-deref  So in ubi_free_volume(), it delete devices whether they are added or not, it will causes null-ptr-deref.  Handle the error case whlie calling ubi_add_volume() to fix this problem. If add volume fails, set the corresponding vol to null, so it can not be accessed in kill_volumes() and release the resource in ubi_add_volume() error path.","modified":"2026-09-15T08:47:32.301037378Z","published":"2025-12-24T13:16:10.557Z","upstream":["CVE-2023-54087"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-54087"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.20-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54087.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.20-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54087.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.20-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54087.json"}}],"schema_version":"1.9.0"}