Closed Bug 1986352 Opened 11 months ago Closed 8 months ago

Assertion failure: tmpEchInner, at ../../lib/ssl/tls13ech.c:2359

Categories

(NSS :: Libraries, defect, P3)

Tracking

(firefox-esr115 wontfix, firefox-esr140 wontfix, firefox145 wontfix, firefox146 wontfix, firefox147 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox145 --- wontfix
firefox146 --- wontfix
firefox147 --- fixed

People

(Reporter: mdauer, Assigned: djackson)

References

(Blocks 1 open bug)

Details

(Keywords: sec-other, Whiteboard: [adv-main147-] [adv-esr140.7-])

Attachments

(2 files)

OSS-Fuzz: https://oss-fuzz.com/testcase-detail/5304540506423296

Details

The assertion was added in a10493dcfcc92cb9bad985b151325238b6e38b09 as part of Bug 1654332. If tmpEchInner is NULL, it will lead to a null pointer dereference later on:

        PORT_Assert(tmpEchInner);
        PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.remoteExtensions));

        /* Start over on ECHInner */
        b = tmpEchInner->data;
        length = tmpEchInner->len;
        rv = ssl3_HandleClientHelloPreamble(ss, &b, &length, &tmpSid,
                                            &tmpCookie, &tmpSuites, &tmpComps);
        if (rv != SECSuccess) {
            goto loser; /* code set, alert sent. */
        }

Note that this was found with UNSAFE_FUZZER_MODE enabled.


To reproduce, perform the following steps:

  1. Build NSS with ./build.sh -c --fuzz=tls --disable-tests
  2. Run /path/to/dist/Debug/bin/nssfuzz-tls-server /path/to/testcase
Severity: -- → S2
Priority: -- → P1
Priority: P1 → P3
Attached file (secure)
Assignee: nobody → djackson

Pushed by djackson@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/0b4ff563fbfb
Make sure we don't accept ECH if the HRR cookie is ill-formatted. r=nss-reviewers,jschanck

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Group: crypto-core-security → core-security-release
QA Whiteboard: [sec] [qa-triage-done-c148/b147]
Whiteboard: [adv-main147-] [adv-esr140.7-]
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: