Closed Bug 1715766 (CVE-2021-30547) Opened 3 years ago Closed 3 years ago

D3D11: Fix respecifying 3D textures

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 90+ fixed
firefox89 + wontfix
firefox90 + fixed
firefox91 + fixed

People

(Reporter: jrmuizel, Assigned: jgilbert)

References

Details

(Keywords: csectype-bounds, sec-high, Whiteboard: [sec-survey][adv-main90+][adv-esr78.12+])

Attachments

(2 files, 1 obsolete file)

We found out about https://chromium-review.googlesource.com/c/angle/angle/+/2911032.

The details are unclear. Jeff Gilbert is going to investigate.

Assignee: nobody → jgilbert
See Also: → 1707952
Group: core-security → gfx-core-security

Yeah, seems clear we need this. Here's our code, clearly unpatched:
https://searchfox.org/mozilla-central/rev/af8e5d37fd56be90ccddae2203e7b875d3f3ae87/gfx/angle/checkout/src/libANGLE/renderer/d3d/d3d11/Image11.cpp#226

We're unlikely to be covered elsewhere. I'm requesting access to the Chromium issue, so I'll be able to know more, but this seems pretty cut-and-dry.

I'll get this cherry-picked for us.

Jeff, FYI, I am planning to do an 89 dot release (not security related) next week, building it on Monday and probably shipping on Wednesday, should I wait for this patch to be included in this dot release or is it a fix that can ride the 91 train? Also, do you know if ESR and mobile are affected? Thanks

Flags: needinfo?(jgilbert)

I'll have patches up today. Expect all branches to be effected.
This is simple enough that it could be a ride-along, and Chrome thought it was serious/high severity. (OOB write)

Flags: needinfo?(jgilbert)
  • Handle blank lines in moz.yaml.

Comment on attachment 9226631 [details]
Bug 1715766 - [angle] Cherry-pick 3d texture respec fix.

Security Approval Request

  • How easily could an exploit be constructed based on the patch?: Medium-hard. The upstream commit fix is vague, but it given the sec bug marking here and upstream, it's clear there's more to this. The upstream commit (that we cherry-pick) does include a test, but turning that into a useful exploit is fairly hard.
  • Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?: Yes
  • Which older supported branches are affected by this flaw?: all
  • If not all supported branches, which bug introduced the flaw?: None
  • Do you have backports for the affected branches?: No
  • If not, how different, hard to create, and risky will they be?: It should backport cleanly
  • How likely is this patch to cause regressions; how much testing does it need?: Unlikely to cause regressions: Small fix, taken (and uplifted) upstream.
Attachment #9226631 - Flags: sec-approval?

Comment on attachment 9226631 [details]
Bug 1715766 - [angle] Cherry-pick 3d texture respec fix.

Approved to land and uplift

Attachment #9226631 - Flags: sec-approval?
Attachment #9226631 - Flags: sec-approval+
Attachment #9226631 - Flags: approval-mozilla-esr78+
Attachment #9226631 - Flags: approval-mozilla-beta+
Group: gfx-core-security → core-security-release
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

As part of a security bug pattern analysis, we are requesting your help with a high level analysis of this bug. It is our hope to develop static analysis (or potentially runtime/dynamic analysis) in the future to identify classes of bugs.

Please visit this google form to reply.

Flags: needinfo?(jgilbert)
Whiteboard: [sec-survey]
QA Whiteboard: [post-critsmash-triage]
Flags: qe-verify-
Whiteboard: [sec-survey] → [sec-survey][adv-main90+]
Whiteboard: [sec-survey][adv-main90+] → [sec-survey][adv-main90+][adv-esr78.12+]
Flags: needinfo?(jgilbert)
Attached file advisory.txt (obsolete) —
Alias: CVE-2021-30547
Attached file advisory.txt
Attachment #9230284 - Attachment is obsolete: true
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: