# CVE-2022-49496: media: mediatek: vcodec: prevent kernel crash when rmmod mtk-vcodec-dec.ko

> 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.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-02-26T02:13:31.528Z
- **Modified:** 2026-08-15T13:17:21.933Z

## Who should check

- Anyone running Linux \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< 1fa37b00dc55a061a3eb82e378849862b4aeca9d; \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< c10c0086db688c95bb4e0e378e523818dff1551d
- Anyone running Linux 5.18

## Description

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

media: mediatek: vcodec: prevent kernel crash when rmmod mtk-vcodec-dec.ko

If the driver support subdev mode, the parameter "dev-\>pm.dev" will be
NULL in mtk\_vcodec\_dec\_remove. Kernel will crash when try to rmmod
mtk-vcodec-dec.ko.

\[ 4380.702726\] pc : do\_raw\_spin\_trylock+0x4/0x80
\[ 4380.707075\] lr : \_raw\_spin\_lock\_irq+0x90/0x14c
\[ 4380.711509\] sp : ffff80000819bc10
\[ 4380.714811\] x29: ffff80000819bc10 x28: ffff3600c03e4000 x27: 0000000000000000
\[ 4380.721934\] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
\[ 4380.729057\] x23: ffff3600c0f34930 x22: ffffd5e923549000 x21: 0000000000000220
\[ 4380.736179\] x20: 0000000000000208 x19: ffffd5e9213e8ebc x18: 0000000000000020
\[ 4380.743298\] x17: 0000002000000000 x16: ffffd5e9213e8e90 x15: 696c346f65646976
\[ 4380.750420\] x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000040
\[ 4380.757542\] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
\[ 4380.764664\] x8 : 0000000000000000 x7 : ffff3600c7273ae8 x6 : ffffd5e9213e8ebc
\[ 4380.771786\] x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
\[ 4380.778908\] x2 : 0000000000000000 x1 : ffff3600c03e4000 x0 : 0000000000000208
\[ 4380.786031\] Call trace:
\[ 4380.788465\]  do\_raw\_spin\_trylock+0x4/0x80
\[ 4380.792462\]  \_\_pm\_runtime\_disable+0x2c/0x1b0
\[ 4380.796723\]  mtk\_vcodec\_dec\_remove+0x5c/0xa0 \[mtk\_vcodec\_dec\]
\[ 4380.802466\]  platform\_remove+0x2c/0x60
\[ 4380.806204\]  \_\_device\_release\_driver+0x194/0x250
\[ 4380.810810\]  driver\_detach+0xc8/0x15c
\[ 4380.814462\]  bus\_remove\_driver+0x5c/0xb0
\[ 4380.818375\]  driver\_unregister+0x34/0x64
\[ 4380.822288\]  platform\_driver\_unregister+0x18/0x24
\[ 4380.826979\]  mtk\_vcodec\_dec\_driver\_exit+0x1c/0x888 \[mtk\_vcodec\_dec\]
\[ 4380.833240\]  \_\_arm64\_sys\_delete\_module+0x190/0x224
\[ 4380.838020\]  invoke\_syscall+0x48/0x114
\[ 4380.841760\]  el0\_svc\_common.constprop.0+0x60/0x11c
\[ 4380.846540\]  do\_el0\_svc+0x28/0x90
\[ 4380.849844\]  el0\_svc+0x4c/0x100
\[ 4380.852975\]  el0t\_64\_sync\_handler+0xec/0xf0
\[ 4380.857148\]  el0t\_64\_sync+0x190/0x194
\[ 4380.860801\] Code: 94431515 17ffffca d503201f d503245f (b9400004)

## Affected and fixed versions

- Linux: \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< 1fa37b00dc55a061a3eb82e378849862b4aeca9d; \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< c10c0086db688c95bb4e0e378e523818dff1551d (cvelist)
- Linux: 5.18 (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-49496. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49496.md
Affected: Linux >= c05bada35f015fb735a9c3830226ccbe2b05008f, < 1fa37b00dc55a061a3eb82e378849862b4aeca9d; >= c05bada35f015fb735a9c3830226ccbe2b05008f, < c10c0086db688c95bb4e0e378e523818dff1551d; Linux 5.18
Fixed in: Linux 1fa37b00dc55a061a3eb82e378849862b4aeca9d

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

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

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

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

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

Linux \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< 1fa37b00dc55a061a3eb82e378849862b4aeca9d; \>= c05bada35f015fb735a9c3830226ccbe2b05008f, \< c10c0086db688c95bb4e0e378e523818dff1551d; Linux 5.18.

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

Yes. Fixed in Linux 1fa37b00dc55a061a3eb82e378849862b4aeca9d. No fix listed yet: follow the vendor advisory.

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

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/1fa37b00dc55a061a3eb82e378849862b4aeca9d>
- patch: <https://git.kernel.org/stable/c/c10c0086db688c95bb4e0e378e523818dff1551d>

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

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