CVE-2024-42099
published high CVSS 3.1 · 7.8s390/dasd: Fix invalid dereferencing of indirect CCW data pointer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc0bd39601c13ab08e961d77a90dfeeff56056353 to < c116475f7d6410b1e6d399207ac75de6cf9c3652 · c0bd39601c13ab08e961d77a90dfeeff56056353 to < b3a58f3b90f564f42a5c35778d8c5107b2c2150b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.9 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is in the s390 DASD ECKD/FBA block device driver, reached through local block I/O submission and its completion/error-recovery path. There is no network-facing component. AC:L - IDAWs are used for practically every DASD request on any LPAR with more than 2 GB of memory, so the CCW_FLAG_IDA precondition is met by default, and an attacker with access to the DASD device can provoke permanently failing requests (e.g. reads against tracks whose format does not match the configured block size, or ESE/space-exhaust conditions) to drive the request into DASD_CQR_FAILED and the sense-dump path. PR:L - The path is entered from ordinary block I/O completion — dasd_log_sense() is invoked for any failed cqr with no capability check — so an unprivileged local user performing normal file I/O on a DASD-backed filesystem can reach it. No CAP_SYS_ADMIN gate applies (unlike the DASD ioctls in dasd_ioctl.c). UI:N - The faulty dereference happens automatically inside the driver's error-recovery/sense-dump path; no action by any other user is needed. S:U - The wild dereference, the log disclosure and the slab free all occur within the kernel's own security authority; no VM, IOMMU or sandbox boundary is crossed. C:H - Up to 128 bytes are read through the mistranslated pointer and formatted into a dev_err() kernel log message, and in dasd_{eckd,fba}_free_cp the same pointer is the source of memcpy() into a page returned to userspace; where the untranslated absolute address resolves to mapped memory this is a kernel-memory disclosure primitive rather than a mere fault. I:H - dasd_eckd_free_cp()/dasd_fba_free_cp() pass the mistranslated pointer to kmem_cache_free(dasd_page_cache, cda & PAGE_MASK), injecting an arbitrary address into the slab allocator's freelist — allocator metadata/live-object corruption that is the classic basis for a write primitive. A:H - The commit states the bug "leads to a kernel panic in error cases"; the dereference occurs in interrupt/tasklet context on an unmapped address, producing an unrecoverable addressing exception and taking the whole system down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c0bd39601c13ab08e961d77a90dfeeff56056353 to < c116475f7d6410b1e6d399207ac75de6cf9c3652 (affected · git)c0bd39601c13ab08e961d77a90dfeeff56056353 to < b3a58f3b90f564f42a5c35778d8c5107b2c2150b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.9 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
s390/dasd: Fix invalid dereferencing of indirect CCW data pointer
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f61ac05b60d17530ab6d7669ef53d1e882c2f8a3a4a89c204cec4740a1c67507
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record