CVE-2024-35790

usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group

MEDIUM
5.5
CVSS Score
Published: May 17, 2024 at 12:24 PM UTC
Updated: June 17, 2026 at 07:35 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: usb: typec: altmodes/displayport: create sysfs nodes as driver's default device attribute group The DisplayPort driver's sysfs nodes may be present to the userspace before typec_altmode_set_drvdata() completes in dp_altmode_probe. This means that a sysfs read can trigger a NULL pointer error by deferencing dp->hpd in hpd_show or dp->lock in pin_assignment_show, as dev_get_drvdata() returns NULL in those cases. Remove manual sysfs node creation in favor of adding attribute group as default for devices bound to the driver. The ATTRIBUTE_GROUPS() macro is not used here otherwise the path to the sysfs nodes is no longer compliant with the ABI.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 5.10.2384.19 ≤ v < 5.15.1844.19 ≤ v < 6.1.1404.19 ≤ v < 6.6.244.19 ≤ v < 6.7.124.19 ≤ v < 6.86.7 ≤ v < 6.7.120e3bb7d6894d9b6e67d6382bb03a46a1dc9895886.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56.8 rc6
Vendor states this is fixed in 0ad011776c057ce881b7fd6d8c79ecd459c087e9 (fixed)
Vendor states this is fixed in 165376f6b23e9a779850e750fb2eb06622e5a531 (fixed)
Vendor states this is fixed in 4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0 (fixed)
Vendor states this is fixed in 6b989ea1c479533ab8dbfbeb1704c94b1d3320da (fixed)
Vendor states this is fixed in 9794ffd9d0c39ee070fbd733f862bbe89b28ba33 (fixed)
Vendor states this is fixed in f1c5ddaef506e3517dce338c08a60663b1521920 (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 5.10.238 (unaffected)
Vendor states this is fixed in 5.15.184 (unaffected)
Vendor states this is fixed in 6.1.140 (unaffected)
Vendor states this is fixed in 6.6.24 (unaffected)
Vendor states this is fixed in 6.7.12 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (8)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ad011776c057ce881b7fd6d8c79ecd459c087e9
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/165376f6b23e9a779850e750fb2eb06622e5a531
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4a22aeac24d0d5f26ba741408e8b5a4be6dc5dc0
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card