# CVE-2022-50398: drm/msm/dp: add atomic\_check to bridge ops

> 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.19% (percentile 5, 2026-11-26)
- **Published:** 2025-09-18T13:33:15.877Z
- **Modified:** 2026-06-17T05:23:27.137Z

## Who should check

- Anyone running Linux \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< d106b866439c63a618d020477bfbe7b46c759657; \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< 3a661247967a6f3c99a95a8ba4c8073c5846ea4b
- Anyone running Linux 5.17

## Description

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

drm/msm/dp: add atomic\_check to bridge ops

DRM commit\_tails() will disable downstream crtc/encoder/bridge if
both disable crtc is required and crtc-\>active is set before pushing
a new frame downstream.

There is a rare case that user space display manager issue an extra
screen update immediately followed by close DRM device while down
stream display interface is disabled. This extra screen update will
timeout due to the downstream interface is disabled but will cause
crtc-\>active be set. Hence the followed commit\_tails() called by
drm\_release() will pass the disable downstream crtc/encoder/bridge
conditions checking even downstream interface is disabled.
This cause the crash to happen at dp\_bridge\_disable() due to it trying
to access the main link register to push the idle pattern out while main
link clocks is disabled.

This patch adds atomic\_check to prevent the extra frame will not
be pushed down if display interface is down so that crtc-\>active
will not be set neither. This will fail the conditions checking
of disabling down stream crtc/encoder/bridge which prevent
drm\_release() from calling dp\_bridge\_disable() so that crash
at dp\_bridge\_disable() prevented.

There is no protection in the DRM framework to check if the display
pipeline has been already disabled before trying again. The only
check is the crtc\_state-\>active but this is controlled by usermode
using UAPI. Hence if the usermode sets this and then crashes, the
driver needs to protect against double disable.

SError Interrupt on CPU7, code 0x00000000be000411 -- SError
CPU: 7 PID: 3878 Comm: Xorg Not tainted 5.19.0-stb-cbq \#19
Hardware name: Google Lazor (rev3 - 8) (DT)
pstate: a04000c9 (NzCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : \_\_cmpxchg\_case\_acq\_32+0x14/0x2c
lr : do\_raw\_spin\_lock+0xa4/0xdc
sp : ffffffc01092b6a0
x29: ffffffc01092b6a0 x28: 0000000000000028 x27: 0000000000000038
x26: 0000000000000004 x25: ffffffd2973dce48 x24: 0000000000000000
x23: 00000000ffffffff x22: 00000000ffffffff x21: ffffffd2978d0008
x20: ffffffd2978d0008 x19: ffffff80ff759fc0 x18: 0000000000000000
x17: 004800a501260460 x16: 0441043b04600438 x15: 04380000089807d0
x14: 07b0089807800780 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000438 x10: 00000000000007d0 x9 : ffffffd2973e09e4
x8 : ffffff8092d53300 x7 : ffffff808902e8b8 x6 : 0000000000000001
x5 : ffffff808902e880 x4 : 0000000000000000 x3 : ffffff80ff759fc0
x2 : 0000000000000001 x1 : 0000000000000000 x0 : ffffff80ff759fc0
Kernel panic - not syncing: Asynchronous SError Interrupt
CPU: 7 PID: 3878 Comm: Xorg Not tainted 5.19.0-stb-cbq \#19
Hardware name: Google Lazor (rev3 - 8) (DT)
Call trace:
 dump\_backtrace.part.0+0xbc/0xe4
 show\_stack+0x24/0x70
 dump\_stack\_lvl+0x68/0x84
 dump\_stack+0x18/0x34
 panic+0x14c/0x32c
 nmi\_panic+0x58/0x7c
 arm64\_serror\_panic+0x78/0x84
 do\_serror+0x40/0x64
 el1h\_64\_error\_handler+0x30/0x48
 el1h\_64\_error+0x68/0x6c
 \_\_cmpxchg\_case\_acq\_32+0x14/0x2c
 \_raw\_spin\_lock\_irqsave+0x38/0x4c
 lock\_timer\_base+0x40/0x78
 \_\_mod\_timer+0xf4/0x25c
 schedule\_timeout+0xd4/0xfc
 \_\_wait\_for\_common+0xac/0x140
 wait\_for\_completion\_timeout+0x2c/0x54
 dp\_ctrl\_push\_idle+0x40/0x88
 dp\_bridge\_disable+0x24/0x30
 drm\_atomic\_bridge\_chain\_disable+0x90/0xbc
 drm\_atomic\_helper\_commit\_modeset\_disables+0x198/0x444
 msm\_atomic\_commit\_tail+0x1d0/0x374
 commit\_tail+0x80/0x108
 drm\_atomic\_helper\_commit+0x118/0x11c
 drm\_atomic\_commit+0xb4/0xe0
 drm\_client\_modeset\_commit\_atomic+0x184/0x224
 drm\_client\_modeset\_commit\_locked+0x58/0x160
 drm\_client\_modeset\_commit+0x3c/0x64
 \_\_drm\_fb\_helper\_restore\_fbdev\_mode\_unlocked+0x98/0xac
 drm\_fb\_helper\_set\_par+0x74/0x80
 drm\_fb\_helper\_hotplug\_event+0xdc/0xe0
 \_\_drm\_fb\_helper\_restore\_fbdev\_mode\_unlocked+0x7c/0xac
 drm\_fb\_helper\_restore\_fbdev\_mode\_unlocked+0x20/0x2c
 drm\_fb\_helper\_lastclose+0x20/0x2c
 drm\_lastclose+0x44/0x6c
 drm\_release+0x88/0xd4
 \_\_fput+0x104/0x220
 \_\_\_\_fput+0x1c/0x28
 task\_work\_run+0x8c/0x100
 d
---truncated---

## Affected and fixed versions

- Linux: \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< d106b866439c63a618d020477bfbe7b46c759657; \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< 3a661247967a6f3c99a95a8ba4c8073c5846ea4b (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50398.md
Affected: Linux >= 8a3b4c17f863cde8e8743edd8faffe916c49b960, < d106b866439c63a618d020477bfbe7b46c759657; >= 8a3b4c17f863cde8e8743edd8faffe916c49b960, < 3a661247967a6f3c99a95a8ba4c8073c5846ea4b; Linux 5.17
Fixed in: Linux 3a661247967a6f3c99a95a8ba4c8073c5846ea4b

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

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

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

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

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

Linux \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< d106b866439c63a618d020477bfbe7b46c759657; \>= 8a3b4c17f863cde8e8743edd8faffe916c49b960, \< 3a661247967a6f3c99a95a8ba4c8073c5846ea4b; Linux 5.17.

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

Yes. Fixed in Linux 3a661247967a6f3c99a95a8ba4c8073c5846ea4b. Upgrade Linux to 3a661247967a6f3c99a95a8ba4c8073c5846ea4b or later.

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

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/d106b866439c63a618d020477bfbe7b46c759657>
- patch: <https://git.kernel.org/stable/c/3a661247967a6f3c99a95a8ba4c8073c5846ea4b>

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

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