Closed Bug 1950112 Opened 1 year ago Closed 1 year ago

Use MITIGATION_WIN32K_DISABLE and MITIGATION_DYNAMIC_CODE_DISABLE flags for GMP process for non-widevine CDMs.

Categories

(Core :: Security: Process Sandboxing, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: bobowen, Assigned: bobowen)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Previous testing for win32k lockdown with widevine has seen intermittent crashes.
However we should be able to turn this on for non-widevine CDMs, i.e. OpenH264 and ClearKey.

Easiest way to do this is turn it on for GMP SandboxLevel::Lockdown (only widevine uses SandboxLevel::Restricted).

We could also use MITIGATION_DYNAMIC_CODE_DISABLE.

See Also: → CVE-2025-27091

Hey Bob, I was just testing the try build here and unfortunately ran into a crash on a webrtc demo -

https://mozilla.github.io/webrtc-landing/pc_test.html
https://crash-stats.mozilla.org/report/index/c507cdf2-14f9-4aed-a823-61a250250226

Update - fixed by setting media.gmp.use-native-event-processing=false

New try push with the native event processing disabled with win32k lockdown:
https://treeherder.mozilla.org/jobs?repo=try&duplicate_jobs=visible&revision=d696b8986c70b9bbf0c4558f20f88ed79643452d

Attachment #9468035 - Attachment description: Bug 1950112: Use win32k lockdown and ACG for GMP process for non-widevine CDMs. r=yjuglaret! → Bug 1950112: Use win32k lockdown and ACG for GMP process sandbox for compatible CDMs. r=yjuglaret!
Attachment #9468035 - Attachment description: Bug 1950112: Use win32k lockdown and ACG for GMP process sandbox for compatible CDMs. r=yjuglaret! → Bug 1950112: Use win32k lockdown and ACG for GMP process for non-widevine CDMs. r=yjuglaret!
Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f1a2f50aef13 Use win32k lockdown and ACG for GMP process for non-widevine CDMs. r=yjuglaret,win-reviewers
Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a4196fedf5da p2: Set correct prefs for nightly builds. r=yjuglaret
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Blocks: 1952926
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: