# CVE-2022-50370: i2c: designware: Fix handling of real but unexpected device interrupts

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-17T14:56:26.015Z
- **Modified:** 2026-06-17T05:23:21.373Z

## Who should check

- Anyone running Linux \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< a206f7fbe9589c60fafad12884628c909ecb042f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< aa59ac81e859006d3a1df035a19b3f2089110f93; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 301c8f5c32c8fb79c67539bc23972dc3ef48024c
- Anyone running Linux 5.12

## Description

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

i2c: designware: Fix handling of real but unexpected device interrupts

Commit c7b79a752871 ("mfd: intel-lpss: Add Intel Alder Lake PCH-S PCI
IDs") caused a regression on certain Gigabyte motherboards for Intel
Alder Lake-S where system crashes to NULL pointer dereference in
i2c\_dw\_xfer\_msg() when system resumes from S3 sleep state ("deep").

I was able to debug the issue on Gigabyte Z690 AORUS ELITE and made
following notes:

- Issue happens when resuming from S3 but not when resuming from
  "s2idle"
- PCI device 00:15.0 == i2c\_designware.0 is already in D0 state when
  system enters into pci\_pm\_resume\_noirq() while all other i2c\_designware
  PCI devices are in D3. Devices were runtime suspended and in D3 prior
  entering into suspend
- Interrupt comes after pci\_pm\_resume\_noirq() when device interrupts are
  re-enabled
- According to register dump the interrupt really comes from the
  i2c\_designware.0. Controller is enabled, I2C target address register
  points to a one detectable I2C device address 0x60 and the
  DW\_IC\_RAW\_INTR\_STAT register START\_DET, STOP\_DET, ACTIVITY and
  TX\_EMPTY bits are set indicating completed I2C transaction.

My guess is that the firmware uses this controller to communicate with
an on-board I2C device during resume but does not disable the controller
before giving control to an operating system.

I was told the UEFI update fixes this but never the less it revealed the
driver is not ready to handle TX\_EMPTY (or RX\_FULL) interrupt when device
is supposed to be idle and state variables are not set (especially the
dev-\>msgs pointer which may point to NULL or stale old data).

Introduce a new software status flag STATUS\_ACTIVE indicating when the
controller is active in driver point of view. Now treat all interrupts
that occur when is not set as unexpected and mask all interrupts from
the controller.

## Affected and fixed versions

- Linux: \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< a206f7fbe9589c60fafad12884628c909ecb042f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< aa59ac81e859006d3a1df035a19b3f2089110f93; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 301c8f5c32c8fb79c67539bc23972dc3ef48024c (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 301c8f5c32c8fb79c67539bc23972dc3ef48024c 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-50370. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50370.md
Affected: Linux >= c7b79a75287141cef5bbaeaf1c942269c08cd52e, < 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f; >= c7b79a75287141cef5bbaeaf1c942269c08cd52e, < a206f7fbe9589c60fafad12884628c909ecb042f; >= c7b79a75287141cef5bbaeaf1c942269c08cd52e, < aa59ac81e859006d3a1df035a19b3f2089110f93; >= c7b79a75287141cef5bbaea…
Fixed in: Linux 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f, Linux 301c8f5c32c8fb79c67539bc23972dc3ef48024c

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-50370 being exploited?

There is no confirmed exploitation: CVE-2022-50370 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-50370?

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

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

Linux \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< a206f7fbe9589c60fafad12884628c909ecb042f; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< aa59ac81e859006d3a1df035a19b3f2089110f93; \>= c7b79a75287141cef5bbaeaf1c942269c08cd52e, \< 301c8f5c32c8fb79c67539bc23972dc3ef48024c; Linux 5.12.

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

Yes. Fixed in Linux 7fa5304c4b5b425d4a0b3acf10139a7f6108a85f, Linux 301c8f5c32c8fb79c67539bc23972dc3ef48024c. Upgrade Linux to 301c8f5c32c8fb79c67539bc23972dc3ef48024c or later.

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

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/7fa5304c4b5b425d4a0b3acf10139a7f6108a85f>
- patch: <https://git.kernel.org/stable/c/a206f7fbe9589c60fafad12884628c909ecb042f>
- patch: <https://git.kernel.org/stable/c/aa59ac81e859006d3a1df035a19b3f2089110f93>
- patch: <https://git.kernel.org/stable/c/301c8f5c32c8fb79c67539bc23972dc3ef48024c>

## 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-50370>

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