Bug 2266347 (CVE-2023-52471)

Summary: CVE-2023-52471 kernel: null pointer dereference issues in ice_ptp.c
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mschmidt, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, sukulkar, tglozar, tyberry, vkumar, vsroka, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A null pointer dereference problem was found in ice_ptp.c in ice in the Linux Kernel. This issue occurs when devm_kasprintf() returns a pointer to dynamically allocated memory, which can be NULL upon failure.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2266348    
Bug Blocks: 2266208    

Description Rohit Keshri 2024-02-27 16:52:33 UTC
In the Linux kernel, the following vulnerability has been resolved:

ice: Fix some null pointer dereference issues in ice_ptp.c

devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

https://git.kernel.org/stable/c/3027e7b15b02d2d37e3f82d6b8404f6d37e3b8cf
https://git.kernel.org/stable/c/3cd9b9bee33f39f6c6d52360fe381b89a7b12695

Comment 1 Rohit Keshri 2024-02-27 16:57:50 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2266348]

Comment 3 Justin M. Forbes 2024-02-27 18:40:46 UTC
This was introduced in 6.7 and fixed in 6.7.2/6.8-rc1. It never hit stable Fedora releases.

Comment 5 Michal Schmidt 2024-03-19 14:04:55 UTC
Small GFP_KERNEL allocations never fail. It is the de-facto rule of the Linux kernel known as "too small to fail".
See:
https://lwn.net/Articles/964793/
  quote: "The kernel, for all practical purposes, already implements GFP_NOFAIL behavior for allocations of eight pages or less."
And older articles about the same topic:
https://lwn.net/Articles/723317/
https://lwn.net/Articles/627419/

Therefore, I don't think we should treat these missing checks as CVEs.

Comment 7 errata-xmlrpc 2024-08-08 04:40:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:5102 https://access.redhat.com/errata/RHSA-2024:5102

Comment 8 errata-xmlrpc 2024-08-08 04:52:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:5101 https://access.redhat.com/errata/RHSA-2024:5101