Bug 2266347 (CVE-2023-52471) - CVE-2023-52471 kernel: null pointer dereference issues in ice_ptp.c
Summary: CVE-2023-52471 kernel: null pointer dereference issues in ice_ptp.c
Keywords:
Status: NEW
Alias: CVE-2023-52471
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2266348
Blocks: 2266208
TreeView+ depends on / blocked
 
Reported: 2024-02-27 16:52 UTC by Rohit Keshri
Modified: 2024-03-19 14:04 UTC (History)
50 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.