{"id":"CVE-2022-48663","summary":"gpio: mockup: fix NULL pointer dereference when removing debugfs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: fix NULL pointer dereference when removing debugfs\n\nWe now remove the device's debugfs entries when unbinding the driver.\nThis now causes a NULL-pointer dereference on module exit because the\nplatform devices are unregistered *after* the global debugfs directory\nhas been recursively removed. Fix it by unregistering the devices first.","modified":"2026-04-02T08:26:47.645796Z","published":"2024-04-28T13:01:36.158Z","related":["SUSE-SU-2024:1641-1","SUSE-SU-2024:1644-1","SUSE-SU-2024:1647-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48663.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48663.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48663"},{"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":"3815e66c2183f3430490e450ba16779cf5214ec6"},{"fixed":"bdea98b98f844bd8a983ca880893e509a8b4162f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3a10e8edee2b45a654f1f7b05f747129ec84cf9d"},{"fixed":"18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bc55c1677edbe86a1c66a35e800df47dff16ad61"},{"fixed":"af0bfabf06c74c260265c30ba81a34e7dec0e881"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"303e6da99429510b1e4edf833afe90ac8542e747"},{"fixed":"b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48663.json"}}],"schema_version":"1.7.5"}