# CVE-2022-50412: drm: bridge: adv7511: unregister cec i2c device after cec adapter

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-09-18T16:03:56.159Z
- **Modified:** 2026-06-17T05:23:29.510Z

## Who should check

- Anyone running Linux \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 3747465c5da7a11957a34bbb9485d9fc253b91cc; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< f369fb4deed7ab997cfa703dc85ec08b3adc1af8; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 4d4d5bc659206b187263190ad9a03513f625659d; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 86ae5170786aea3e1751123ca55700fb9b37b623; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 40cdb02cb9f965732eb543d47f15bef8d10f0f5f
- Anyone running Linux 4.15

## Description

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

drm: bridge: adv7511: unregister cec i2c device after cec adapter

cec\_unregister\_adapter() assumes that the underlying adapter ops are
callable. For example, if the CEC adapter currently has a valid physical
address, then the unregistration procedure will invalidate the physical
address by setting it to f.f.f.f. Whence the following kernel oops
observed after removing the adv7511 module:

    Unable to handle kernel execution of user memory at virtual address 0000000000000000
    Internal error: Oops: 86000004 \[\#1\] PREEMPT\_RT SMP
    Call trace:
     0x0
     adv7511\_cec\_adap\_log\_addr+0x1ac/0x1c8 \[adv7511\]
     cec\_adap\_unconfigure+0x44/0x90 \[cec\]
     \_\_cec\_s\_phys\_addr.part.0+0x68/0x230 \[cec\]
     \_\_cec\_s\_phys\_addr+0x40/0x50 \[cec\]
     cec\_unregister\_adapter+0xb4/0x118 \[cec\]
     adv7511\_remove+0x60/0x90 \[adv7511\]
     i2c\_device\_remove+0x34/0xe0
     device\_release\_driver\_internal+0x114/0x1f0
     driver\_detach+0x54/0xe0
     bus\_remove\_driver+0x60/0xd8
     driver\_unregister+0x34/0x60
     i2c\_del\_driver+0x2c/0x68
     adv7511\_exit+0x1c/0x67c \[adv7511\]
     \_\_arm64\_sys\_delete\_module+0x154/0x288
     invoke\_syscall+0x48/0x100
     el0\_svc\_common.constprop.0+0x48/0xe8
     do\_el0\_svc+0x28/0x88
     el0\_svc+0x1c/0x50
     el0t\_64\_sync\_handler+0xa8/0xb0
     el0t\_64\_sync+0x15c/0x160
    Code: bad PC value
    ---\[ end trace 0000000000000000 \]---

Protect against this scenario by unregistering i2c\_cec after
unregistering the CEC adapter. Duly disable the CEC clock afterwards
too.

## Affected and fixed versions

- Linux: \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 3747465c5da7a11957a34bbb9485d9fc253b91cc; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< f369fb4deed7ab997cfa703dc85ec08b3adc1af8; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 4d4d5bc659206b187263190ad9a03513f625659d; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 86ae5170786aea3e1751123ca55700fb9b37b623; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 40cdb02cb9f965732eb543d47f15bef8d10f0f5f (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50412.md
Affected: Linux >= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, < 3747465c5da7a11957a34bbb9485d9fc253b91cc; >= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, < f369fb4deed7ab997cfa703dc85ec08b3adc1af8; >= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, < 4d4d5bc659206b187263190ad9a03513f625659d; >= 3b1b975003e4a3da4b93ab0…
Fixed in: Linux 3747465c5da7a11957a34bbb9485d9fc253b91cc, Linux 4d4d5bc659206b187263190ad9a03513f625659d, Linux 86ae5170786aea3e1751123ca55700fb9b37b623, Linux 40cdb02cb9f965732eb543d47f15bef8d10f0f5f

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

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

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

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

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

Linux \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 3747465c5da7a11957a34bbb9485d9fc253b91cc; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< f369fb4deed7ab997cfa703dc85ec08b3adc1af8; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 4d4d5bc659206b187263190ad9a03513f625659d; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 86ae5170786aea3e1751123ca55700fb9b37b623; \>= 3b1b975003e4a3da4b93ab032487a3ae4afca7b5, \< 40cdb02cb9f965732eb543d47f15bef8d10f0f5f; Linux 4.15.

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

Yes. Fixed in Linux 3747465c5da7a11957a34bbb9485d9fc253b91cc, Linux 4d4d5bc659206b187263190ad9a03513f625659d, Linux 86ae5170786aea3e1751123ca55700fb9b37b623, Linux 40cdb02cb9f965732eb543d47f15bef8d10f0f5f. Upgrade Linux to 40cdb02cb9f965732eb543d47f15bef8d10f0f5f or later.

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

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/3747465c5da7a11957a34bbb9485d9fc253b91cc>
- patch: <https://git.kernel.org/stable/c/f369fb4deed7ab997cfa703dc85ec08b3adc1af8>
- patch: <https://git.kernel.org/stable/c/4d4d5bc659206b187263190ad9a03513f625659d>
- patch: <https://git.kernel.org/stable/c/86ae5170786aea3e1751123ca55700fb9b37b623>
- patch: <https://git.kernel.org/stable/c/40cdb02cb9f965732eb543d47f15bef8d10f0f5f>

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

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