# CVE-2022-48796: iommu: Fix potential use-after-free during probe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-07-16T11:43:50.796Z
- **Modified:** 2026-08-05T08:52:23.915Z

## Who should check

- Anyone running Linux \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< cb86e511e78e796de6947b8f3acca1b7c76fb2ff; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< 65ab30f6a6952fa9ee13009862736cf8d110e6e5; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< f74fc4b5bd533ea3d30ce47cccb8ef8d21fda85a; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< b54240ad494300ff0994c4539a531727874381f4
- Anyone running Linux 5.3

## Description

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

iommu: Fix potential use-after-free during probe

Kasan has reported the following use after free on dev-\>iommu.
when a device probe fails and it is in process of freeing dev-\>iommu
in dev\_iommu\_free function, a deferred\_probe\_work\_func runs in parallel
and tries to access dev-\>iommu-\>fwspec in of\_iommu\_configure path thus
causing use after free.

BUG: KASAN: use-after-free in of\_iommu\_configure+0xb4/0x4a4
Read of size 8 at addr ffffff87a2f1acb8 by task kworker/u16:2/153

Workqueue: events\_unbound deferred\_probe\_work\_func
Call trace:
 dump\_backtrace+0x0/0x33c
 show\_stack+0x18/0x24
 dump\_stack\_lvl+0x16c/0x1e0
 print\_address\_description+0x84/0x39c
 \_\_kasan\_report+0x184/0x308
 kasan\_report+0x50/0x78
 \_\_asan\_load8+0xc0/0xc4
 of\_iommu\_configure+0xb4/0x4a4
 of\_dma\_configure\_id+0x2fc/0x4d4
 platform\_dma\_configure+0x40/0x5c
 really\_probe+0x1b4/0xb74
 driver\_probe\_device+0x11c/0x228
 \_\_device\_attach\_driver+0x14c/0x304
 bus\_for\_each\_drv+0x124/0x1b0
 \_\_device\_attach+0x25c/0x334
 device\_initial\_probe+0x24/0x34
 bus\_probe\_device+0x78/0x134
 deferred\_probe\_work\_func+0x130/0x1a8
 process\_one\_work+0x4c8/0x970
 worker\_thread+0x5c8/0xaec
 kthread+0x1f8/0x220
 ret\_from\_fork+0x10/0x18

Allocated by task 1:
 \_\_\_\_kasan\_kmalloc+0xd4/0x114
 \_\_kasan\_kmalloc+0x10/0x1c
 kmem\_cache\_alloc\_trace+0xe4/0x3d4
 \_\_iommu\_probe\_device+0x90/0x394
 probe\_iommu\_group+0x70/0x9c
 bus\_for\_each\_dev+0x11c/0x19c
 bus\_iommu\_probe+0xb8/0x7d4
 bus\_set\_iommu+0xcc/0x13c
 arm\_smmu\_bus\_init+0x44/0x130 \[arm\_smmu\]
 arm\_smmu\_device\_probe+0xb88/0xc54 \[arm\_smmu\]
 platform\_drv\_probe+0xe4/0x13c
 really\_probe+0x2c8/0xb74
 driver\_probe\_device+0x11c/0x228
 device\_driver\_attach+0xf0/0x16c
 \_\_driver\_attach+0x80/0x320
 bus\_for\_each\_dev+0x11c/0x19c
 driver\_attach+0x38/0x48
 bus\_add\_driver+0x1dc/0x3a4
 driver\_register+0x18c/0x244
 \_\_platform\_driver\_register+0x88/0x9c
 init\_module+0x64/0xff4 \[arm\_smmu\]
 do\_one\_initcall+0x17c/0x2f0
 do\_init\_module+0xe8/0x378
 load\_module+0x3f80/0x4a40
 \_\_se\_sys\_finit\_module+0x1a0/0x1e4
 \_\_arm64\_sys\_finit\_module+0x44/0x58
 el0\_svc\_common+0x100/0x264
 do\_el0\_svc+0x38/0xa4
 el0\_svc+0x20/0x30
 el0\_sync\_handler+0x68/0xac
 el0\_sync+0x160/0x180

Freed by task 1:
 kasan\_set\_track+0x4c/0x84
 kasan\_set\_free\_info+0x28/0x4c
 \_\_\_\_kasan\_slab\_free+0x120/0x15c
 \_\_kasan\_slab\_free+0x18/0x28
 slab\_free\_freelist\_hook+0x204/0x2fc
 kfree+0xfc/0x3a4
 \_\_iommu\_probe\_device+0x284/0x394
 probe\_iommu\_group+0x70/0x9c
 bus\_for\_each\_dev+0x11c/0x19c
 bus\_iommu\_probe+0xb8/0x7d4
 bus\_set\_iommu+0xcc/0x13c
 arm\_smmu\_bus\_init+0x44/0x130 \[arm\_smmu\]
 arm\_smmu\_device\_probe+0xb88/0xc54 \[arm\_smmu\]
 platform\_drv\_probe+0xe4/0x13c
 really\_probe+0x2c8/0xb74
 driver\_probe\_device+0x11c/0x228
 device\_driver\_attach+0xf0/0x16c
 \_\_driver\_attach+0x80/0x320
 bus\_for\_each\_dev+0x11c/0x19c
 driver\_attach+0x38/0x48
 bus\_add\_driver+0x1dc/0x3a4
 driver\_register+0x18c/0x244
 \_\_platform\_driver\_register+0x88/0x9c
 init\_module+0x64/0xff4 \[arm\_smmu\]
 do\_one\_initcall+0x17c/0x2f0
 do\_init\_module+0xe8/0x378
 load\_module+0x3f80/0x4a40
 \_\_se\_sys\_finit\_module+0x1a0/0x1e4
 \_\_arm64\_sys\_finit\_module+0x44/0x58
 el0\_svc\_common+0x100/0x264
 do\_el0\_svc+0x38/0xa4
 el0\_svc+0x20/0x30
 el0\_sync\_handler+0x68/0xac
 el0\_sync+0x160/0x180

Fix this by setting dev-\>iommu to NULL first and
then freeing dev\_iommu structure in dev\_iommu\_free
function.

## Affected and fixed versions

- Linux: \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< cb86e511e78e796de6947b8f3acca1b7c76fb2ff; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< 65ab30f6a6952fa9ee13009862736cf8d110e6e5; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< f74fc4b5bd533ea3d30ce47cccb8ef8d21fda85a; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< b54240ad494300ff0994c4539a531727874381f4 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48796. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48796.md
Affected: Linux >= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, < cb86e511e78e796de6947b8f3acca1b7c76fb2ff; >= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, < 65ab30f6a6952fa9ee13009862736cf8d110e6e5; >= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, < f74fc4b5bd533ea3d30ce47cccb8ef8d21fda85a; >= 0c830e6b32826311fc2b9ea…
Fixed in: Linux 65ab30f6a6952fa9ee13009862736cf8d110e6e5

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

There is no confirmed exploitation: CVE-2022-48796 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-48796?

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

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

Linux \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< cb86e511e78e796de6947b8f3acca1b7c76fb2ff; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< 65ab30f6a6952fa9ee13009862736cf8d110e6e5; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< f74fc4b5bd533ea3d30ce47cccb8ef8d21fda85a; \>= 0c830e6b32826311fc2b9ea1f4679be0f4ef0933, \< b54240ad494300ff0994c4539a531727874381f4; Linux 5.3.

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

Yes. Fixed in Linux 65ab30f6a6952fa9ee13009862736cf8d110e6e5. No fix listed yet: follow the vendor advisory.

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

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/cb86e511e78e796de6947b8f3acca1b7c76fb2ff>
- patch: <https://git.kernel.org/stable/c/65ab30f6a6952fa9ee13009862736cf8d110e6e5>
- patch: <https://git.kernel.org/stable/c/f74fc4b5bd533ea3d30ce47cccb8ef8d21fda85a>
- patch: <https://git.kernel.org/stable/c/b54240ad494300ff0994c4539a531727874381f4>

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

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