# CVE-2022-48660: gpiolib: cdev: Set lineevent\_state::irq after IRQ register successfully

> 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-04-28T13:01:22.239Z
- **Modified:** 2026-06-17T05:15:51.150Z

## Who should check

- Anyone running Linux \>= 468242724143a8e732f82f664b1e77432d149618, \< 657803b918e097e47d99d1489da83a603c36bcdd; \>= 468242724143a8e732f82f664b1e77432d149618, \< 97da736cd11ae73bdf2f5e21e24446b8349e0168; \>= 468242724143a8e732f82f664b1e77432d149618, \< b1489043d3b9004dd8d5a0357b08b5f0e6691c43; \>= 468242724143a8e732f82f664b1e77432d149618, \< 69bef19d6b9700e96285f4b4e28691cda3dcd0d1
- Anyone running Linux 5.9

## Description

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

gpiolib: cdev: Set lineevent\_state::irq after IRQ register successfully

When running gpio test on nxp-ls1028 platform with below command
gpiomon --num-events=3 --rising-edge gpiochip1 25
There will be a warning trace as below:
Call trace:
free\_irq+0x204/0x360
lineevent\_free+0x64/0x70
gpio\_ioctl+0x598/0x6a0
\_\_arm64\_sys\_ioctl+0xb4/0x100
invoke\_syscall+0x5c/0x130
......
el0t\_64\_sync+0x1a0/0x1a4
The reason of this issue is that calling request\_threaded\_irq()
function failed, and then lineevent\_free() is invoked to release
the resource. Since the lineevent\_state::irq was already set, so
the subsequent invocation of free\_irq() would trigger the above
warning call trace. To fix this issue, set the lineevent\_state::irq
after the IRQ register successfully.

## Affected and fixed versions

- Linux: \>= 468242724143a8e732f82f664b1e77432d149618, \< 657803b918e097e47d99d1489da83a603c36bcdd; \>= 468242724143a8e732f82f664b1e77432d149618, \< 97da736cd11ae73bdf2f5e21e24446b8349e0168; \>= 468242724143a8e732f82f664b1e77432d149618, \< b1489043d3b9004dd8d5a0357b08b5f0e6691c43; \>= 468242724143a8e732f82f664b1e77432d149618, \< 69bef19d6b9700e96285f4b4e28691cda3dcd0d1 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-48660.md
Affected: Linux >= 468242724143a8e732f82f664b1e77432d149618, < 657803b918e097e47d99d1489da83a603c36bcdd; >= 468242724143a8e732f82f664b1e77432d149618, < 97da736cd11ae73bdf2f5e21e24446b8349e0168; >= 468242724143a8e732f82f664b1e77432d149618, < b1489043d3b9004dd8d5a0357b08b5f0e6691c43; >= 468242724143a8e732f82f6…
Fixed in: Linux 657803b918e097e47d99d1489da83a603c36bcdd, Linux 97da736cd11ae73bdf2f5e21e24446b8349e0168, Linux 69bef19d6b9700e96285f4b4e28691cda3dcd0d1

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

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

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

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

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

Linux \>= 468242724143a8e732f82f664b1e77432d149618, \< 657803b918e097e47d99d1489da83a603c36bcdd; \>= 468242724143a8e732f82f664b1e77432d149618, \< 97da736cd11ae73bdf2f5e21e24446b8349e0168; \>= 468242724143a8e732f82f664b1e77432d149618, \< b1489043d3b9004dd8d5a0357b08b5f0e6691c43; \>= 468242724143a8e732f82f664b1e77432d149618, \< 69bef19d6b9700e96285f4b4e28691cda3dcd0d1; Linux 5.9.

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

Yes. Fixed in Linux 657803b918e097e47d99d1489da83a603c36bcdd, Linux 97da736cd11ae73bdf2f5e21e24446b8349e0168, Linux 69bef19d6b9700e96285f4b4e28691cda3dcd0d1. Upgrade Linux to 69bef19d6b9700e96285f4b4e28691cda3dcd0d1 or later.

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

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/657803b918e097e47d99d1489da83a603c36bcdd>
- patch: <https://git.kernel.org/stable/c/97da736cd11ae73bdf2f5e21e24446b8349e0168>
- patch: <https://git.kernel.org/stable/c/b1489043d3b9004dd8d5a0357b08b5f0e6691c43>
- patch: <https://git.kernel.org/stable/c/69bef19d6b9700e96285f4b4e28691cda3dcd0d1>

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

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