Bug 1226870 (CVE-2024-36481)

Summary: VUL-0: CVE-2024-36481: kernel: tracing/probes: fix error check in parse_btf_field()
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: andrea.mattiazzo, mhocko
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/411782/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36481:5.5:(AV:L/AC:L/PR:L/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-24 10:32:01 UTC
In the Linux kernel, the following vulnerability has been resolved:

tracing/probes: fix error check in parse_btf_field()

btf_find_struct_member() might return NULL or an error via the
ERR_PTR() macro. However, its caller in parse_btf_field() only checks
for the NULL condition. Fix this by using IS_ERR() and returning the
error up the stack.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36481
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36481.mbox
https://git.kernel.org/stable/c/ad4b202da2c498fefb69e5d87f67b946e7fe1e6a
https://git.kernel.org/stable/c/4ed468edfeb54c7202e559eba74c25fac6a0dad0
https://git.kernel.org/stable/c/e569eb34970281438e2b48a3ef11c87459fcfbcb
https://www.cve.org/CVERecord?id=CVE-2024-36481
https://bugzilla.redhat.com/show_bug.cgi?id=2293640
Comment 2 Andrea Mattiazzo 2024-07-01 13:37:25 UTC
All done, closing.