# CVE-2022-49900: i2c: piix4: Fix adapter not be removed in piix4\_remove()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-415
- **Published:** 2025-05-01T14:10:46.362Z
- **Modified:** 2026-11-05T20:17:17.410Z

## Who should check

- Anyone running Linux \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< bfd5e62f9a7ee214661cb6f143a3b40ccc63317f; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< d78ccdce662e88f41e87e90cf2bee63c1715d2a5; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< fe51636fffc8108c7c4da6aa393010e786530ad9; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< 569bea74c94d37785682b11bab76f557520477cd
- Anyone running Linux 5.4

## Description

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

i2c: piix4: Fix adapter not be removed in piix4\_remove()

In piix4\_probe(), the piix4 adapter will be registered in:

   piix4\_probe()
     piix4\_add\_adapters\_sb800() / piix4\_add\_adapter()
       i2c\_add\_adapter()

Based on the probed device type, piix4\_add\_adapters\_sb800() or single
piix4\_add\_adapter() will be called.
For the former case, piix4\_adapter\_count is set as the number of adapters,
while for antoher case it is not set and kept default \*zero\*.

When piix4 is removed, piix4\_remove() removes the adapters added in
piix4\_probe(), basing on the piix4\_adapter\_count value.
Because the count is zero for the single adapter case, the adapter won't
be removed and makes the sources allocated for adapter leaked, such as
the i2c client and device.

These sources can still be accessed by i2c or bus and cause problems.
An easily reproduced case is that if a new adapter is registered, i2c
will get the leaked adapter and try to call smbus\_algorithm, which was
already freed:

Triggered by: rmmod i2c\_piix4 && modprobe max31730

 BUG: unable to handle page fault for address: ffffffffc053d860
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 Oops: 0000 \[\#1\] PREEMPT SMP KASAN
 CPU: 0 PID: 3752 Comm: modprobe Tainted: G
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)
 RIP: 0010:i2c\_default\_probe (drivers/i2c/i2c-core-base.c:2259) i2c\_core
 RSP: 0018:ffff888107477710 EFLAGS: 00000246
 ...
 \<TASK\>
  i2c\_detect (drivers/i2c/i2c-core-base.c:2302) i2c\_core
  \_\_process\_new\_driver (drivers/i2c/i2c-core-base.c:1336) i2c\_core
  bus\_for\_each\_dev (drivers/base/bus.c:301)
  i2c\_for\_each\_dev (drivers/i2c/i2c-core-base.c:1823) i2c\_core
  i2c\_register\_driver (drivers/i2c/i2c-core-base.c:1861) i2c\_core
  do\_one\_initcall (init/main.c:1296)
  do\_init\_module (kernel/module/main.c:2455)
  ...
 \</TASK\>
 ---\[ end trace 0000000000000000 \]---

Fix this problem by correctly set piix4\_adapter\_count as 1 for the
single adapter so it can be normally removed.

## Affected and fixed versions

- Linux: \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< bfd5e62f9a7ee214661cb6f143a3b40ccc63317f; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< d78ccdce662e88f41e87e90cf2bee63c1715d2a5; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< fe51636fffc8108c7c4da6aa393010e786530ad9; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< 569bea74c94d37785682b11bab76f557520477cd (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49900.md
Affected: Linux >= 528d53a1592b0e27c423f7cafc1df85f77fc1163, < bfd5e62f9a7ee214661cb6f143a3b40ccc63317f; >= 528d53a1592b0e27c423f7cafc1df85f77fc1163, < d78ccdce662e88f41e87e90cf2bee63c1715d2a5; >= 528d53a1592b0e27c423f7cafc1df85f77fc1163, < fe51636fffc8108c7c4da6aa393010e786530ad9; >= 528d53a1592b0e27c423f7c…
Fixed in: Linux 569bea74c94d37785682b11bab76f557520477cd

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

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

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

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

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

Linux \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< bfd5e62f9a7ee214661cb6f143a3b40ccc63317f; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< d78ccdce662e88f41e87e90cf2bee63c1715d2a5; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< fe51636fffc8108c7c4da6aa393010e786530ad9; \>= 528d53a1592b0e27c423f7cafc1df85f77fc1163, \< 569bea74c94d37785682b11bab76f557520477cd; Linux 5.4.

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

Yes. Fixed in Linux 569bea74c94d37785682b11bab76f557520477cd. Upgrade Linux to 569bea74c94d37785682b11bab76f557520477cd or later.

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

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/bfd5e62f9a7ee214661cb6f143a3b40ccc63317f>
- patch: <https://git.kernel.org/stable/c/d78ccdce662e88f41e87e90cf2bee63c1715d2a5>
- patch: <https://git.kernel.org/stable/c/fe51636fffc8108c7c4da6aa393010e786530ad9>
- patch: <https://git.kernel.org/stable/c/569bea74c94d37785682b11bab76f557520477cd>

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

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