CVE-2022-49072
gpio: Restrict usage of GPIO chip irq members before initialization
Check your servers for CVE-2022-49072
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-2022-49072 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
gpio: Restrict usage of GPIO chip irq members before initialization
GPIO chip irq members are exposed before they could be completely initialized and this leads to race conditions.
One such issue was observed for the gc->irq.domain variable which was accessed through the I2C interface in gpiochip_to_irq() before it could be initialized by gpiochip_add_irqchip(). This resulted in Kernel NULL pointer dereference.
Following are the logs for reference :-
kernel: Call Trace: kernel: gpiod_to_irq+0x53/0x70 kernel: acpi_dev_gpio_irq_get_by+0x113/0x1f0 kernel: i2c_acpi_get_irq+0xc0/0xd0 kernel: i2c_device_probe+0x28a/0x2a0 kernel: really_probe+0xf2/0x460 kernel: RIP: 0010:gpiochip_to_irq+0x47/0xc0
To avoid such scenarios, restrict usage of GPIO chip irq members before they are completely initialized.
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 48057ed1840fde9239b1e000bea1a0a1f07c5e99, before 7e88a50704b0c49ad3f2d11e8b963341cf68a89f affected from 48057ed1840fde9239b1e000bea1a0a1f07c5e99, before 0912cf021fb5749372b3782611d8b1de4986c13a affected from 48057ed1840fde9239b1e000bea1a0a1f07c5e99, before 2c1fa3614795e2b24da1ba95de0b27b8f6ea4537 affected from 48057ed1840fde9239b1e000bea1a0a1f07c5e99, before f8dea54f74cae8c2e4d7b2952e8fed7743a85c87 affected from 48057ed1840fde9239b1e000bea1a0a1f07c5e99, before 5467801f1fcbdc46bc7298a84dbf3ca1ff2a7320 affected 44dfa46aaf7cf594ac89bc1a0c0e56c498b31269 affected from 5.2.14, before 5.3
Other versions: unaffected
|
| Linux |
affected 5.3 unaffected before 5.3 unaffected from 5.10.111 up to and including 5.10.* unaffected from 5.15.34 up to and including 5.15.* unaffected from 5.16.20 up to and including 5.16.* unaffected from 5.17.3 up to and including 5.17.* unaffected 5.18 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-2022-49072 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49072
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-2022-49072
trivy image --scanners vuln IMAGE | grep CVE-2022-49072
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
- https://git.kernel.org/stable/c/7e88a50704b0c49ad3f2d11e8b963341cf68a89f git.kernel.org
- https://git.kernel.org/stable/c/0912cf021fb5749372b3782611d8b1de4986c13a git.kernel.org
- https://git.kernel.org/stable/c/2c1fa3614795e2b24da1ba95de0b27b8f6ea4537 git.kernel.org
- https://git.kernel.org/stable/c/f8dea54f74cae8c2e4d7b2952e8fed7743a85c87 git.kernel.org
- https://git.kernel.org/stable/c/5467801f1fcbdc46bc7298a84dbf3ca1ff2a7320 git.kernel.org
Source: the record CVE-2022-49072 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse