Bug 1227865 (CVE-2024-40982) - VUL-0: CVE-2024-40982: kernel: ssb: fix potential NULL pointer dereference in ssb_device_uevent()
Summary: VUL-0: CVE-2024-40982: kernel: ssb: fix potential NULL pointer dereference in...
Status: NEW
Alias: CVE-2024-40982
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/413909/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-40982:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 18:04 UTC by SMASH SMASH
Modified: 2024-07-15 18:15 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-07-15 18:04:58 UTC
In the Linux kernel, the following vulnerability has been resolved:

ssb: Fix potential NULL pointer dereference in ssb_device_uevent()

The ssb_device_uevent() function first attempts to convert the 'dev' pointer
to 'struct ssb_device *'. However, it mistakenly dereferences 'dev' before
performing the NULL check, potentially leading to a NULL pointer
dereference if 'dev' is NULL.

To fix this issue, move the NULL check before dereferencing the 'dev' pointer,
ensuring that the pointer is valid before attempting to use it.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-40982
https://www.cve.org/CVERecord?id=CVE-2024-40982
https://git.kernel.org/stable/c/789c17185fb0f39560496c2beab9b57ce1d0cbe7
https://git.kernel.org/stable/c/7d43c8377c6fc846b1812f8df360425c9323dc56
https://git.kernel.org/stable/c/c5dc2d8eb3981bae261ea7d1060a80868e886813
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-40982.mbox