CVE-2019-25162

i2c: Fix a potential use after free

7.8 high EPSS 0.38%

Published 26 Feb 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2019-25162

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-25162 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.38%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 34.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 19 Aug 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before e6412ba3b6508bdf9c074d310bf4144afa6aec1a
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before 23a191b132cd87f746c62f3dc27da33683d85829
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before 871a1e94929a27bf6e2cd99523865c840bbc2d87
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before 81cb31756888bb062e92d2dca21cd629d77a46a9
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before 35927d7509ab9bf41896b7e44f639504eae08af7
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before e8e1a046cf87c8b1363e5de835114f2779e2aaf4
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before 12b0606000d0828630c033bf0c74c748464fe87d
affected from 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6, before e4c72c06c367758a14f227c847f9d623f1994ecf
Other versions: unaffected
Linux
affected 4.3
unaffected before 4.3
unaffected from 4.14.291 up to and including 4.14.*
unaffected from 4.19.256 up to and including 4.19.*
unaffected from 5.4.211 up to and including 5.4.*
unaffected from 5.10.137 up to and including 5.10.*
unaffected from 5.15.61 up to and including 5.15.*
unaffected from 5.18.18 up to and including 5.18.*
unaffected from 5.19.2 up to and including 5.19.*
unaffected 6.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2019-25162 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2019-25162

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2019-25162
trivy image --scanners vuln IMAGE | grep CVE-2019-25162

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2019-25162 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.