# CVE-2019-25162: i2c: Fix a potential use after free

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2024-02-26T17:20:20.846Z
- Modified: 2026-08-05T08:43:46.382Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

i2c: Fix a potential use after free

Free the adap structure only after we are done using it.
This patch just moves the put_device() down a bit to avoid the
use after free.

[wsa: added comment to the code, added Fixes tag]

(As written by CVE List.)

## Affected

- Linux Linux: from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before e6412ba3b6508bdf9c074d310bf4144afa6aec1a; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before 23a191b132cd87f746c62f3dc27da33683d85829; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before 871a1e94929a27bf6e2cd99523865c840bbc2d87; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before 81cb31756888bb062e92d2dca21cd629d77a46a9; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before 35927d7509ab9bf41896b7e44f639504eae08af7; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before e8e1a046cf87c8b1363e5de835114f2779e2aaf4; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before 12b0606000d0828630c033bf0c74c748464fe87d; from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 before e4c72c06c367758a14f227c847f9d623f1994ecf; 4.3 (not affected: before 4.3; from 4.14.291 up to 4.14.*; from 4.19.256 up to 4.19.*; from 5.4.211 up to 5.4.*; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 4.3.0 before 4.14.291; from 4.15.0 before 4.19.256; from 4.20.0 before 5.4.211; from 5.5.0 before 5.10.137; from 5.11.0 before 5.15.61; from 5.16.0 before 5.18.18; from 5.19.0 before 5.19.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e6412ba3b6508bdf9c074d310bf4144afa6aec1a> (patch)
- <https://git.kernel.org/stable/c/23a191b132cd87f746c62f3dc27da33683d85829> (patch)
- <https://git.kernel.org/stable/c/871a1e94929a27bf6e2cd99523865c840bbc2d87> (patch)
- <https://git.kernel.org/stable/c/81cb31756888bb062e92d2dca21cd629d77a46a9> (patch)
- <https://git.kernel.org/stable/c/35927d7509ab9bf41896b7e44f639504eae08af7> (patch)
- <https://git.kernel.org/stable/c/e8e1a046cf87c8b1363e5de835114f2779e2aaf4> (patch)
- <https://git.kernel.org/stable/c/12b0606000d0828630c033bf0c74c748464fe87d> (patch)
- <https://git.kernel.org/stable/c/e4c72c06c367758a14f227c847f9d623f1994ecf> (patch)

## Sources

- CVE List: [CVE-2019-25162](https://www.cve.org/CVERecord?id=CVE-2019-25162), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2019-25162](https://nvd.nist.gov/vuln/detail/CVE-2019-25162), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2019-25162 · Whole record: https://cve.day/CVE-2019-25162.json · Rebuilt by cve.day 2026-11-25T22:57:50.276Z
