# CVE-2022-49424: iommu/mediatek: Fix NULL pointer dereference when printing dev\_name

> 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, NVD) `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.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-26T02:12:46.209Z
- **Modified:** 2026-06-17T05:18:00.723Z

## Who should check

- Anyone running Linux \>= 77fbe028d5a3f7fc6060c4454ead9510533acd1e, \< c3c2734e28d7fac50228c4d2b8896e8695adf304; \>= 18ea450ed1b60c1bb336f5efe874f61909ce7bec, \< e9c63c0f73a1bbfd02624f5eae7e881df8b6830f; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< 8837c2682b9b2eed83e6212bcf79850c593a6fee; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< de78657e16f41417da9332f09c2d67d100096939; b7bf68272b6ae7c469854e2e054db1db1d158999; \>= 5.15.33, \< 5.15.46; \>= 5.17.2, \< 5.17.14; \>= 5.16.19, \< 5.17
- Anyone running Linux 5.18

## Description

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

iommu/mediatek: Fix NULL pointer dereference when printing dev\_name

When larbdev is NULL (in the case I hit, the node is incorrectly set
iommus = \<&iommu NUM\>), it will cause device\_link\_add() fail and
kernel crashes when we try to print dev\_name(larbdev).

Let's fail the probe if a larbdev is NULL to avoid invalid inputs from
dts.

It should work for normal correct setting and avoid the crash caused
by my incorrect setting.

Error log:
\[   18.189042\]\[  T301\] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000050
...
\[   18.344519\]\[  T301\] pstate: a0400005 (NzCv daif +PAN -UAO)
\[   18.345213\]\[  T301\] pc : mtk\_iommu\_probe\_device+0xf8/0x118 \[mtk\_iommu\]
\[   18.346050\]\[  T301\] lr : mtk\_iommu\_probe\_device+0xd0/0x118 \[mtk\_iommu\]
\[   18.346884\]\[  T301\] sp : ffffffc00a5635e0
\[   18.347392\]\[  T301\] x29: ffffffc00a5635e0 x28: ffffffd44a46c1d8
\[   18.348156\]\[  T301\] x27: ffffff80c39a8000 x26: ffffffd44a80cc38
\[   18.348917\]\[  T301\] x25: 0000000000000000 x24: ffffffd44a80cc38
\[   18.349677\]\[  T301\] x23: ffffffd44e4da4c6 x22: ffffffd44a80cc38
\[   18.350438\]\[  T301\] x21: ffffff80cecd1880 x20: 0000000000000000
\[   18.351198\]\[  T301\] x19: ffffff80c439f010 x18: ffffffc00a50d0c0
\[   18.351959\]\[  T301\] x17: ffffffffffffffff x16: 0000000000000004
\[   18.352719\]\[  T301\] x15: 0000000000000004 x14: ffffffd44eb5d420
\[   18.353480\]\[  T301\] x13: 0000000000000ad2 x12: 0000000000000003
\[   18.354241\]\[  T301\] x11: 00000000fffffad2 x10: c0000000fffffad2
\[   18.355003\]\[  T301\] x9 : a0d288d8d7142d00 x8 : a0d288d8d7142d00
\[   18.355763\]\[  T301\] x7 : ffffffd44c2bc640 x6 : 0000000000000000
\[   18.356524\]\[  T301\] x5 : 0000000000000080 x4 : 0000000000000001
\[   18.357284\]\[  T301\] x3 : 0000000000000000 x2 : 0000000000000005
\[   18.358045\]\[  T301\] x1 : 0000000000000000 x0 : 0000000000000000
\[   18.360208\]\[  T301\] Hardware name: MT6873 (DT)
\[   18.360771\]\[  T301\] Call trace:
\[   18.361168\]\[  T301\]  dump\_backtrace+0xf8/0x1f0
\[   18.361737\]\[  T301\]  dump\_stack\_lvl+0xa8/0x11c
\[   18.362305\]\[  T301\]  dump\_stack+0x1c/0x2c
\[   18.362816\]\[  T301\]  mrdump\_common\_die+0x184/0x40c \[mrdump\]
\[   18.363575\]\[  T301\]  ipanic\_die+0x24/0x38 \[mrdump\]
\[   18.364230\]\[  T301\]  atomic\_notifier\_call\_chain+0x128/0x2b8
\[   18.364937\]\[  T301\]  die+0x16c/0x568
\[   18.365394\]\[  T301\]  \_\_do\_kernel\_fault+0x1e8/0x214
\[   18.365402\]\[  T301\]  do\_page\_fault+0xb8/0x678
\[   18.366934\]\[  T301\]  do\_translation\_fault+0x48/0x64
\[   18.368645\]\[  T301\]  do\_mem\_abort+0x68/0x148
\[   18.368652\]\[  T301\]  el1\_abort+0x40/0x64
\[   18.368660\]\[  T301\]  el1h\_64\_sync\_handler+0x54/0x88
\[   18.368668\]\[  T301\]  el1h\_64\_sync+0x68/0x6c
\[   18.368673\]\[  T301\]  mtk\_iommu\_probe\_device+0xf8/0x118 \[mtk\_iommu\]
...

## Affected and fixed versions

- Linux: \>= 77fbe028d5a3f7fc6060c4454ead9510533acd1e, \< c3c2734e28d7fac50228c4d2b8896e8695adf304; \>= 18ea450ed1b60c1bb336f5efe874f61909ce7bec, \< e9c63c0f73a1bbfd02624f5eae7e881df8b6830f; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< 8837c2682b9b2eed83e6212bcf79850c593a6fee; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< de78657e16f41417da9332f09c2d67d100096939; b7bf68272b6ae7c469854e2e054db1db1d158999; \>= 5.15.33, \< 5.15.46; \>= 5.17.2, \< 5.17.14; \>= 5.16.19, \< 5.17 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49424.md
Affected: Linux >= 77fbe028d5a3f7fc6060c4454ead9510533acd1e, < c3c2734e28d7fac50228c4d2b8896e8695adf304; >= 18ea450ed1b60c1bb336f5efe874f61909ce7bec, < e9c63c0f73a1bbfd02624f5eae7e881df8b6830f; >= 635319a4a7444ca97124d781cd96deb277ff4d40, < 8837c2682b9b2eed83e6212bcf79850c593a6fee; >= 635319a4a7444ca97124d78…
Fixed in: Linux 8837c2682b9b2eed83e6212bcf79850c593a6fee, Linux 5.15.46, Linux 5.17.14, Linux 5.17

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

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

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

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

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

Linux \>= 77fbe028d5a3f7fc6060c4454ead9510533acd1e, \< c3c2734e28d7fac50228c4d2b8896e8695adf304; \>= 18ea450ed1b60c1bb336f5efe874f61909ce7bec, \< e9c63c0f73a1bbfd02624f5eae7e881df8b6830f; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< 8837c2682b9b2eed83e6212bcf79850c593a6fee; \>= 635319a4a7444ca97124d781cd96deb277ff4d40, \< de78657e16f41417da9332f09c2d67d100096939; b7bf68272b6ae7c469854e2e054db1db1d158999; \>= 5.15.33, \< 5.15.46; \>= 5.17.2, \< 5.17.14; \>= 5.16.19, \< 5.17; Linux 5.18.

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

Yes. Fixed in Linux 8837c2682b9b2eed83e6212bcf79850c593a6fee, Linux 5.15.46, Linux 5.17.14, Linux 5.17. Upgrade Linux to 5.17 or later.

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

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/c3c2734e28d7fac50228c4d2b8896e8695adf304>
- patch: <https://git.kernel.org/stable/c/e9c63c0f73a1bbfd02624f5eae7e881df8b6830f>
- patch: <https://git.kernel.org/stable/c/8837c2682b9b2eed83e6212bcf79850c593a6fee>
- patch: <https://git.kernel.org/stable/c/de78657e16f41417da9332f09c2d67d100096939>

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

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