{"id":"CVE-2022-48735","summary":"ALSA: hda: Fix UAF of leds class devs at unbinding","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Fix UAF of leds class devs at unbinding\n\nThe LED class devices that are created by HD-audio codec drivers are\nregistered via devm_led_classdev_register() and associated with the\nHD-audio codec device.  Unfortunately, it turned out that the devres\nrelease doesn't work for this case; namely, since the codec resource\nrelease happens before the devm call chain, it triggers a NULL\ndereference or a UAF for a stale set_brightness_delay callback.\n\nFor fixing the bug, this patch changes the LED class device register\nand unregister in a manual manner without devres, keeping the\ninstances in hda_gen_spec.","modified":"2026-04-02T08:26:57.366377Z","published":"2024-06-20T11:13:22.065Z","related":["SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2902-1","SUSE-SU-2024:2929-1","SUSE-SU-2024:2939-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48735.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0e629052f013eeb61494d4df2f1f647c2a9aef47"},{"type":"WEB","url":"https://git.kernel.org/stable/c/549f8ffc7b2f7561bea7f90930b6c5104318e87b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/813e9f3e06d22e29872d4fd51b54992d89cf66c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7de1002135cf94367748ffc695a29812d7633b5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48735.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48735"},{"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":"15509b6344726de22bdbfff88b65341dd0dd33af"},{"fixed":"a7de1002135cf94367748ffc695a29812d7633b5"},{"fixed":"0e629052f013eeb61494d4df2f1f647c2a9aef47"},{"fixed":"813e9f3e06d22e29872d4fd51b54992d89cf66c8"},{"fixed":"549f8ffc7b2f7561bea7f90930b6c5104318e87b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48735.json"}}],"schema_version":"1.7.5"}