CVE-2022-48801
iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < b7f54894aa7517d2b6c797a499b9f491e9db9083; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < 202071d2518537866d291aa7cf26af54e674f4d4; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < c72ea20503610a4a7ba26c769357d31602769c01
- Anyone running Linux 5.13
Vulnerability facts
- Affected
- Linux >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < b7f54894aa7517d2b6c797a499b9f491e9db9083; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < 202071d2518537866d291aa7cf26af54e674f4d4; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < c72ea20503610a4a7ba26c769357d31602769c01; Linux 5.13
- Fixed in
- Linux 202071d2518537866d291aa7cf26af54e674f4d4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL If we fail to copy the just created file descriptor to userland, we try to clean up by putting back 'fd' and freeing 'ib'. The code uses put_unused_fd() for the former which is wrong, as the file descriptor was already published by fd_install() which gets called internally by anon_inode_getfd(). This makes the error handling code leaving a half cleaned up file descriptor table around and a partially destructed 'file' object, allowing userland to play use-after-free tricks on us, by abusing the still usable fd and making the code operate on a dangling 'file->private_data' pointer. Instead of leaving the kernel in a partially corrupted state, don't attempt to explicitly clean up and leave this to the process exit path that'll release any still valid fds, including the one created by the previous call to anon_inode_getfd(). Simply return -EFAULT to indicate the error.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < b7f54894aa7517d2b6c797a499b9f491e9db9083; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < 202071d2518537866d291aa7cf26af54e674f4d4; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < c72ea20503610a4a7ba26c769357d31602769c01 | — | cvelist |
| Linux | 5.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-48801. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-48801.md Affected: Linux >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < b7f54894aa7517d2b6c797a499b9f491e9db9083; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < 202071d2518537866d291aa7cf26af54e674f4d4; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < c72ea20503610a4a7ba26c769357d31602769c01; Linux 5.13 Fixed in: Linux 202071d2518537866d291aa7cf26af54e674f4d4 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.
References
FAQ
Is CVE-2022-48801 being exploited?
There is no confirmed exploitation: CVE-2022-48801 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-48801?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-48801?
Linux >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < b7f54894aa7517d2b6c797a499b9f491e9db9083; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < 202071d2518537866d291aa7cf26af54e674f4d4; >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488, < c72ea20503610a4a7ba26c769357d31602769c01; Linux 5.13.
Is there a fix for CVE-2022-48801?
Yes. Fixed in Linux 202071d2518537866d291aa7cf26af54e674f4d4. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-48801?
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.