{"id":"CVE-2024-35790","published":"2024-05-17T12:24:45Z","modified":"2026-05-11T20:11:05Z","title":"usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->hpd in\nhpd_show or dp->lock 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00228,"percentile":0.13819,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6b989ea1c479533ab8dbfbeb1704c94b1d3320da","tags":[]},{"url":"https://git.kernel.org/stable/c/9794ffd9d0c39ee070fbd733f862bbe89b28ba33","tags":[]},{"url":"https://git.kernel.org/stable/c/f1c5ddaef506e3517dce338c08a60663b1521920","tags":[]},{"url":"https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0","tags":[]},{"url":"https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9","tags":[]},{"url":"https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.76}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < 6b989ea1c479533ab8dbfbeb1704c94b1d3320da",">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < 9794ffd9d0c39ee070fbd733f862bbe89b28ba33",">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < f1c5ddaef506e3517dce338c08a60663b1521920",">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < 4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0",">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < 0ad011776c057ce881b7fd6d8c79ecd459c087e9",">= 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588, < 165376f6b23e9a779850e750fb2eb06622e5a531"]},{"vendor":"Linux","product":"Linux","versions":["4.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-12T15:26:39.430170Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35783","exploited":false,"provenance":"source"}}