Closed Bug 1359963 Opened 8 years ago Closed 8 years ago

NSS server crash when handling SSLv2 hello, attempt to write to NULL buffer.

Categories

(NSS :: Libraries, enhancement)

3.28.2
enhancement
Not set
normal

Tracking

(firefox-esr45 unaffected, firefox-esr52 unaffected, firefox54 unaffected, firefox55 unaffected)

RESOLVED DUPLICATE of bug 1328122
Tracking Status
firefox-esr45 --- unaffected
firefox-esr52 --- unaffected
firefox54 --- unaffected
firefox55 --- unaffected

People

(Reporter: KaiE, Unassigned)

References

Details

(Keywords: csectype-dos, sec-moderate)

Attachments

(1 file)

We've received a report from a user of a server software that uses NSS. The report was seen on a RHEL 7.3 system, with NSS 3.28.2, in combination with an old nss-softokn 3.16.2.3 It's crashing in ssl3_GatherData, here: if (v2HdrLength) { gs->inbuf.len = 5 - v2HdrLength; -> PORT_Memcpy(lbp, gs->hdr + v2HdrLength, gs->inbuf.len); gs->remainder -= gs->inbuf.len; lbp += gs->inbuf.len; } lbp is NULL, apparently the code expects that a destination buffer was allocated, but it hasn't.
attaching full stack
Additional information, the crash was triggered by running a Qualys vulnerability scan on the server. Based on the stack, it seems a SSLv2 compatible hello was sent to the crashing server.
For reference: https://bugzilla.redhat.com/show_bug.cgi?id=1435017 (There are private comments which you probably aren't able to see.)
Note that the code on trunk asserts that lbp is non-NULL, so there is probably already a fix added. Tim knows this code better than I do, but it seems like you might just be able to backport the fix to Bug 1328122 (https://hg.mozilla.org/projects/nss/rev/55ea60effd0d).
Martin is right, we can backport the fix for bug 1328122 if needed. OTOH, 3.29 has it already and only servers are affected.
Does Mozilla intend to assign a CVE id to this issue, or should we do it?
any thing on comment #6 yet?
Flags: needinfo?(dveditz)
We have assigned CVE-2017-7502 to this issue.
Thanks!
Flags: needinfo?(dveditz)
Alias: CVE-2017-7502
So is this a dupe of bug 1328122 then? If it's the same CVE number and same patch seems like it is.
Alias: CVE-2017-7502
Depends on: CVE-2017-7502
Yeah.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Group: crypto-core-security
QA Contact: jjones
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: