{"id":"CVE-2024-35790","state":"PUBLISHED","title":"usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group","description":"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.","publishedAt":"2024-05-17T12:24:45.918Z","updatedAt":"2026-05-11T20:11:05.582Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"6b989ea1c479533ab8dbfbeb1704c94b1d3320da","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"9794ffd9d0c39ee070fbd733f862bbe89b28ba33","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"f1c5ddaef506e3517dce338c08a60663b1521920","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"0ad011776c057ce881b7fd6d8c79ecd459c087e9","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"165376f6b23e9a779850e750fb2eb06622e5a531","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/altmodes/displayport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.238","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.184","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.140","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/altmodes/displayport.c"]}],"references":["https://git.kernel.org/stable/c/6b989ea1c479533ab8dbfbeb1704c94b1d3320da","https://git.kernel.org/stable/c/9794ffd9d0c39ee070fbd733f862bbe89b28ba33","https://git.kernel.org/stable/c/f1c5ddaef506e3517dce338c08a60663b1521920","https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0","https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9","https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35790.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35790","state":"PUBLISHED","datePublished":"2024-05-17T12:24:45.918Z","dateUpdated":"2026-05-11T20:11:05.582Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T12:19:12.338Z"},"containers":{"cna":{"title":"usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"6b989ea1c479533ab8dbfbeb1704c94b1d3320da","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"9794ffd9d0c39ee070fbd733f862bbe89b28ba33","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"f1c5ddaef506e3517dce338c08a60663b1521920","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"0ad011776c057ce881b7fd6d8c79ecd459c087e9","versionType":"git"},{"version":"0e3bb7d6894d9b6e67d6382bb03a46a1dc989588","status":"affected","lessThan":"165376f6b23e9a779850e750fb2eb06622e5a531","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/altmodes/displayport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.238","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.184","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.140","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/altmodes/displayport.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6b989ea1c479533ab8dbfbeb1704c94b1d3320da"},{"url":"https://git.kernel.org/stable/c/9794ffd9d0c39ee070fbd733f862bbe89b28ba33"},{"url":"https://git.kernel.org/stable/c/f1c5ddaef506e3517dce338c08a60663b1521920"},{"url":"https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0"},{"url":"https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9"},{"url":"https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:11:05.582Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.10.238"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.15.184"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.1.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.6.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.7.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-12T15:26:39.430170Z","id":"CVE-2024-35790","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-12T15:26:53.327Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:29:55.320Z"}}]}}}