# CVE-2022-50307: s390/cio: fix out-of-bounds access on cio\_ignore free

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-09-15T14:46:02.608Z
- **Modified:** 2026-11-05T20:17:33.553Z

## Who should check

- Anyone running Linux \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 0e501fd0f38e42304bfa0d46a812d93f80294a87; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 106ab66cf5467726ca5ead51623043d37c06820a; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 1b6074112742f65ece71b0f299ca5a6a887d2db6
- Anyone running Linux 5.15

## Description

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

s390/cio: fix out-of-bounds access on cio\_ignore free

The channel-subsystem-driver scans for newly available devices whenever
device-IDs are removed from the cio\_ignore list using a command such as:

  echo free \>/proc/cio\_ignore

Since an I/O device scan might interfer with running I/Os, commit
172da89ed0ea ("s390/cio: avoid excessive path-verification requests")
introduced an optimization to exclude online devices from the scan.

The newly added check for online devices incorrectly assumes that
an I/O-subchannel's drvdata points to a struct io\_subchannel\_private.
For devices that are bound to a non-default I/O subchannel driver, such
as the vfio\_ccw driver, this results in an out-of-bounds read access
during each scan.

Fix this by changing the scan logic to rely on a driver-independent
online indication. For this we can use struct subchannel-\>config.ena,
which is the driver's requested subchannel-enabled state. Since I/Os
can only be started on enabled subchannels, this matches the intent
of the original optimization of not scanning devices where I/O might
be running.

## Affected and fixed versions

- Linux: \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 0e501fd0f38e42304bfa0d46a812d93f80294a87; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 106ab66cf5467726ca5ead51623043d37c06820a; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 1b6074112742f65ece71b0f299ca5a6a887d2db6 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 1b6074112742f65ece71b0f299ca5a6a887d2db6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50307.md
Affected: Linux >= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, < 0e501fd0f38e42304bfa0d46a812d93f80294a87; >= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, < 106ab66cf5467726ca5ead51623043d37c06820a; >= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, < 1b6074112742f65ece71b0f299ca5a6a887d2db6; Linux 5.15
Fixed in: Linux 0e501fd0f38e42304bfa0d46a812d93f80294a87, Linux 106ab66cf5467726ca5ead51623043d37c06820a, Linux 1b6074112742f65ece71b0f299ca5a6a887d2db6

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-2022-50307 being exploited?

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

### How serious is CVE-2022-50307?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50307?

Linux \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 0e501fd0f38e42304bfa0d46a812d93f80294a87; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 106ab66cf5467726ca5ead51623043d37c06820a; \>= 172da89ed0eaf9d9348f5decb86ad04c624b39d1, \< 1b6074112742f65ece71b0f299ca5a6a887d2db6; Linux 5.15.

### Is there a fix for CVE-2022-50307?

Yes. Fixed in Linux 0e501fd0f38e42304bfa0d46a812d93f80294a87, Linux 106ab66cf5467726ca5ead51623043d37c06820a, Linux 1b6074112742f65ece71b0f299ca5a6a887d2db6. Upgrade Linux to 1b6074112742f65ece71b0f299ca5a6a887d2db6 or later.

### How do I check if I'm affected by CVE-2022-50307?

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/0e501fd0f38e42304bfa0d46a812d93f80294a87>
- patch: <https://git.kernel.org/stable/c/106ab66cf5467726ca5ead51623043d37c06820a>
- patch: <https://git.kernel.org/stable/c/1b6074112742f65ece71b0f299ca5a6a887d2db6>

## 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-2022-50307>

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