Bug 2153052 (CVE-2022-3108) - CVE-2022-3108 kernel: drm/amdkfd: NULL pointer dereference in kfd_parse_subtype_iolink()
Summary: CVE-2022-3108 kernel: drm/amdkfd: NULL pointer dereference in kfd_parse_subty...
Keywords:
Status: NEW
Alias: CVE-2022-3108
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2006441 2043115 2044440 2061574 2214239 2214240 2214241 2214242
Blocks: 2153051
TreeView+ depends on / blocked
 
Reported: 2022-12-13 21:48 UTC by Sage McTaggart
Modified: 2023-07-11 18:08 UTC (History)
44 users (show)

Fixed In Version: kernel 5.17-rc6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Sage McTaggart 2022-12-13 21:48:49 UTC
[Suggested description]
An issue was discovered in the Linux kernel through 5.16-rc6.
kfd_parse_subtype_iolink in drivers/gpu/drm/amd/amdkfd/kfd_crat.c lacks
check of the return value of kmemdup().

------------------------------------------

[VulnerabilityType Other]
NULL Pointer Dereference

------------------------------------------

[Vendor of Product]
the development group

------------------------------------------

[Affected Product Code Base]
Linux kernel - 5.16-rc6

------------------------------------------

[Reference]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.19-rc2&id=abfaf0eee97925905e742aa3b0b72e04a918fa9e

------------------------------------------

[Discoverer]
Jiasheng Jiang

Comment 4 Mauro Matteo Cascella 2023-06-11 12:43:24 UTC
Upstream commit:
https://github.com/torvalds/linux/commit/abfaf0eee97925905e742aa3b0b72e04a918fa9e

Comment 5 Mauro Matteo Cascella 2023-06-12 07:41:00 UTC
This issue was fixed upstream in version 5.17. The kernel packages as shipped in the following Red Hat products were previously updated to a version that contains the fix via the following errata:

kernel in Red Hat Enterprise Linux 8
https://access.redhat.com/errata/RHSA-2022:1988

kernel-rt in Red Hat Enterprise Linux 8
https://access.redhat.com/errata/RHSA-2022:1975

kernel in Red Hat Enterprise Linux 9
https://access.redhat.com/errata/RHSA-2022:8267

kernel-rt in Red Hat Enterprise Linux 9
https://access.redhat.com/errata/RHSA-2022:7933


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