{"id":"CVE-2023-54027","summary":"iio: core: Prevent invalid memory access when there is no parent","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: core: Prevent invalid memory access when there is no parent\n\nCommit 813665564b3d (\"iio: core: Convert to use firmware node handle\ninstead of OF node\") switched the kind of nodes to use for label\nretrieval in device registration.  Probably an unwanted change in that\ncommit was that if the device has no parent then NULL pointer is\naccessed.  This is what happens in the stock IIO dummy driver when a\nnew entry is created in configfs:\n\n  # mkdir /sys/kernel/config/iio/devices/dummy/foo\n  BUG: kernel NULL pointer dereference, address: ...\n  ...\n  Call Trace:\n  __iio_device_register\n  iio_dummy_probe\n\nSince there seems to be no reason to make a parent device of an IIO\ndummy device mandatory, let’s prevent the invalid memory access in\n__iio_device_register when the parent device is NULL.  With this\nchange, the IIO dummy driver works fine with configfs.","modified":"2026-04-02T09:45:30.608293Z","published":"2025-12-24T10:55:55.890Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54027.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/312f04ede209f0a186799fe8e64a19b49700d5dc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a4b34cccff14ce74bb7d77fbfd56e7c9d7c28a97"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2a69969908fcaf68596dfc04369af0fe2e1d2f7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54027.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54027"},{"type":"PACKAGE","url":"https://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":"813665564b3d7c74412fe2877520f1d254ce948a"},{"fixed":"312f04ede209f0a186799fe8e64a19b49700d5dc"},{"fixed":"a4b34cccff14ce74bb7d77fbfd56e7c9d7c28a97"},{"fixed":"b2a69969908fcaf68596dfc04369af0fe2e1d2f7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54027.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.1.46"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.4.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54027.json"}}],"schema_version":"1.7.5"}