{"id":"CVE-2024-35790","summary":"usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group\n\nThe DisplayPort driver's sysfs nodes may be present to the userspace before\ntypec_altmode_set_drvdata() completes in dp_altmode_probe. This means that\na sysfs read can trigger a NULL pointer error by deferencing dp-\u003ehpd in\nhpd_show or dp-\u003elock in pin_assignment_show, as dev_get_drvdata() returns\nNULL in those cases.\n\nRemove manual sysfs node creation in favor of adding attribute group as\ndefault for devices bound to the driver. The ATTRIBUTE_GROUPS() macro is\nnot used here otherwise the path to the sysfs nodes is no longer compliant\nwith the ABI.","modified":"2026-04-02T11:51:04.341016Z","published":"2024-05-17T12:24:45.918Z","related":["SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:02334-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35790.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6b989ea1c479533ab8dbfbeb1704c94b1d3320da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9794ffd9d0c39ee070fbd733f862bbe89b28ba33"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1c5ddaef506e3517dce338c08a60663b1521920"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35790.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35790"},{"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":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588"},{"fixed":"6b989ea1c479533ab8dbfbeb1704c94b1d3320da"},{"fixed":"9794ffd9d0c39ee070fbd733f862bbe89b28ba33"},{"fixed":"f1c5ddaef506e3517dce338c08a60663b1521920"},{"fixed":"4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0"},{"fixed":"0ad011776c057ce881b7fd6d8c79ecd459c087e9"},{"fixed":"165376f6b23e9a779850e750fb2eb06622e5a531"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35790.json"}}],"schema_version":"1.7.5"}