# CVE-2021-47369: s390/qeth: fix NULL deref in qeth\_clear\_working\_pool\_list()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-21T15:03:35.149Z
- **Modified:** 2026-06-17T04:17:18.670Z

## Who should check

- Anyone running Linux \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< db94f89e1dadf693c15c2d60de0c34777cea5779; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 248f064af222a1f97ee02c84a98013dfbccad386; b2400fe7e1011c5f3dc2268e8382082465b1c8a2; 22697ca855c06a4a1264d5651542b7d98870a8c4; \>= 5.7.16, \< 5.8; \>= 5.8.2, \< 5.9
- Anyone running Linux 5.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

s390/qeth: fix NULL deref in qeth\_clear\_working\_pool\_list()

When qeth\_set\_online() calls qeth\_clear\_working\_pool\_list() to roll
back after an error exit from qeth\_hardsetup\_card(), we are at risk of
accessing card-\>qdio.in\_q before it was allocated by
qeth\_alloc\_qdio\_queues() via qeth\_mpc\_initialize().

qeth\_clear\_working\_pool\_list() then dereferences NULL, and by writing to
queue-\>bufs\[i\].pool\_entry scribbles all over the CPU's lowcore.
Resulting in a crash when those lowcore areas are used next (eg. on
the next machine-check interrupt).

Such a scenario would typically happen when the device is first set
online and its queues aren't allocated yet. An early IO error or certain
misconfigs (eg. mismatched transport mode, bad portno) then cause us to
error out from qeth\_hardsetup\_card() with card-\>qdio.in\_q still being
NULL.

Fix it by checking the pointer for NULL before accessing it.

Note that we also have (rare) paths inside qeth\_mpc\_initialize() where
a configuration change can cause us to free the existing queues,
expecting that subsequent code will allocate them again. If we then
error out before that re-allocation happens, the same bug occurs.

Root-caused-by: Heiko Carstens \<hca@linux.ibm.com\>

## Affected and fixed versions

- Linux: \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< db94f89e1dadf693c15c2d60de0c34777cea5779; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 248f064af222a1f97ee02c84a98013dfbccad386; b2400fe7e1011c5f3dc2268e8382082465b1c8a2; 22697ca855c06a4a1264d5651542b7d98870a8c4; \>= 5.7.16, \< 5.8; \>= 5.8.2, \< 5.9 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 5.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47369. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47369.md
Affected: Linux >= eff73e16ee116f6eafa2be48fab42659a27cb453, < db94f89e1dadf693c15c2d60de0c34777cea5779; >= eff73e16ee116f6eafa2be48fab42659a27cb453, < 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc; >= eff73e16ee116f6eafa2be48fab42659a27cb453, < 248f064af222a1f97ee02c84a98013dfbccad386; b2400fe7e1011c5f3dc2268e83…
Fixed in: Linux 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc, Linux 248f064af222a1f97ee02c84a98013dfbccad386, Linux 5.8, Linux 5.9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47369 being exploited?

There is no confirmed exploitation: CVE-2021-47369 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47369?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47369?

Linux \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< db94f89e1dadf693c15c2d60de0c34777cea5779; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc; \>= eff73e16ee116f6eafa2be48fab42659a27cb453, \< 248f064af222a1f97ee02c84a98013dfbccad386; b2400fe7e1011c5f3dc2268e8382082465b1c8a2; 22697ca855c06a4a1264d5651542b7d98870a8c4; \>= 5.7.16, \< 5.8; \>= 5.8.2, \< 5.9; Linux 5.9.

### Is there a fix for CVE-2021-47369?

Yes. Fixed in Linux 9b00fb12cdc9d8d1c3ffe82a78e74738127803fc, Linux 248f064af222a1f97ee02c84a98013dfbccad386, Linux 5.8, Linux 5.9. Upgrade Linux to 5.9 or later.

### How do I check if I'm affected by CVE-2021-47369?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/db94f89e1dadf693c15c2d60de0c34777cea5779>
- patch: <https://git.kernel.org/stable/c/9b00fb12cdc9d8d1c3ffe82a78e74738127803fc>
- patch: <https://git.kernel.org/stable/c/248f064af222a1f97ee02c84a98013dfbccad386>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47369>

HTML: <https://flawdb.com/CVE-2021-47369> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47369>
