Bug 1222359 (CVE-2024-26716) - VUL-0: CVE-2024-26716: kernel: kernel: usb: core: Prevent null pointer dereference in update_port_device_state
Summary: VUL-0: CVE-2024-26716: kernel: kernel: usb: core: Prevent null pointer derefe...
Status: RESOLVED FIXED
Alias: CVE-2024-26716
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/400186/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26716:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 09:07 UTC by SMASH SMASH
Modified: 2024-06-25 18:24 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-05 09:07:03 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: core: Prevent null pointer dereference in update_port_device_state

Currently, the function update_port_device_state gets the usb_hub from
udev->parent by calling usb_hub_to_struct_hub.
However, in case the actconfig or the maxchild is 0, the usb_hub would
be NULL and upon further accessing to get port_dev would result in null
pointer dereference.

Fix this by introducing an if check after the usb_hub is populated.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26716
https://www.cve.org/CVERecord?id=CVE-2024-26716
https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c
https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f
https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873
https://bugzilla.redhat.com/show_bug.cgi?id=2273150
Comment 1 Gianluca Gabrielli 2024-04-05 09:07:39 UTC
no supported branches are affected