CVE-2022-48660

Source
https://cve.org/CVERecord?id=CVE-2022-48660
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48660.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48660
Downstream
Related
Published
2024-04-28T13:01:22.239Z
Modified
2026-03-13T05:40:24.316647Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
gpiolib: cdev: Set lineevent_state::irq after IRQ register successfully
Details

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: freeirq+0x204/0x360 lineeventfree+0x64/0x70 gpio_ioctl+0x598/0x6a0 _arm64sysioctl+0xb4/0x100 invokesyscall+0x5c/0x130 ...... el0t64sync+0x1a0/0x1a4 The reason of this issue is that calling requestthreadedirq() function failed, and then lineeventfree() is invoked to release the resource. Since the lineeventstate::irq was already set, so the subsequent invocation of freeirq() would trigger the above warning call trace. To fix this issue, set the lineeventstate::irq after the IRQ register successfully.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48660.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
468242724143a8e732f82f664b1e77432d149618
Fixed
657803b918e097e47d99d1489da83a603c36bcdd
Fixed
97da736cd11ae73bdf2f5e21e24446b8349e0168
Fixed
b1489043d3b9004dd8d5a0357b08b5f0e6691c43
Fixed
69bef19d6b9700e96285f4b4e28691cda3dcd0d1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48660.json"