Bug 1226988 (CVE-2024-39470)

Summary: VUL-0: CVE-2024-39470: kernel: eventfs: Fix a possible null pointer dereference in eventfs_find_events()
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: carlos.lopez, mhocko, petr.pavlu
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/412101/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-39470:4.4:(AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-26 07:40:46 UTC
In the Linux kernel, the following vulnerability has been resolved:

eventfs: Fix a possible null pointer dereference in eventfs_find_events()

In function eventfs_find_events,there is a potential null pointer
that may be caused by calling update_events_attr which will perform
some operations on the members of the ei struct when ei is NULL.

Hence,When ei->is_freed is set,return NULL directly.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-39470
https://www.cve.org/CVERecord?id=CVE-2024-39470
https://git.kernel.org/stable/c/5ade5fbdbbb1f023bb70730ba4d74146c8bc7eb9
https://git.kernel.org/stable/c/7a1b2d138189375ed1dcd7d0851118230221bd1d
https://git.kernel.org/stable/c/d4e9a968738bf66d3bb852dd5588d4c7afd6d7f4
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-39470.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2294311
Comment 2 Andrea Mattiazzo 2024-07-01 13:33:51 UTC
All done, closing.