Bug 2301462 (CVE-2024-42099)

Summary: CVE-2024-42099 kernel: s390/dasd: Fix invalid dereferencing of indirect CCW data pointer
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.9.9, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the `s390/dasd` subsystem in the Linux Kernel, where an invalid dereferencing of an indirect Channel Command Word (CCW) data pointer could cause a kernel panic. The issue occurs due to the CCW Command Data Address (CDA) pointer used with indirect addressing (IDAW), which needs proper translation from physical to virtual memory.
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: 2301757    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-30 08:20:25 UTC
In the Linux kernel, the following vulnerability has been resolved:

s390/dasd: Fix invalid dereferencing of indirect CCW data pointer

Fix invalid dereferencing of indirect CCW data pointer in
dasd_eckd_dump_sense() that leads to a kernel panic in error cases.

When using indirect addressing for DASD CCWs (IDAW) the CCW CDA pointer
does not contain the data address itself but a pointer to the IDAL.
This needs to be translated from physical to virtual as well before
using it.

This dereferencing is also used for dasd_page_cache and also fixed
although it is very unlikely that this code path ever gets used.

Comment 1 Mauro Matteo Cascella 2024-07-30 18:09:33 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073018-CVE-2024-42099-d7b7@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 18:09:54 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301757]