CVE-2017-7805

NameCVE-2017-7805
DescriptionDuring TLS 1.2 exchanges, handshake hashes are generated which point to a message buffer. This saved data is used for later messages but in some cases, the handshake transcript can exceed the space available in the current buffer, causing the allocation of a new buffer. This leaves a pointer pointing to the old, freed buffer, resulting in a use-after-free when handshake hashes are then calculated afterwards. This can result in a potentially exploitable crash. This vulnerability affects Firefox < 56, Firefox ESR < 52.4, and Thunderbird < 52.4.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1118-1, DLA-1138-1, DLA-1153-1, DSA-3987-1, DSA-3998-1, DSA-4014-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
firefox (PTS)sid63.0.3-1fixed
firefox-esr (PTS)jessie52.8.1esr-1~deb8u1fixed
jessie (security)60.3.0esr-1~deb8u1fixed
stretch (security), stretch60.3.0esr-1~deb9u1fixed
buster60.3.0esr-1fixed
sid60.3.0esr-3fixed
nss (PTS)jessie (security), jessie2:3.26-1+debu8u3fixed
stretch (security), stretch2:3.26.2-1.1+deb9u1fixed
buster, sid2:3.40-1fixed
thunderbird (PTS)jessie1:52.8.0-1~deb8u1fixed
jessie (security)1:60.3.0-1~deb8u1fixed
stretch1:60.2.1-2~deb9u1fixed
stretch (security)1:60.3.0-1~deb9u1fixed
buster, sid1:60.3.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
firefoxsource(unstable)56.0-1medium
firefox-esrsource(unstable)52.4.0esr-2medium
firefox-esrsourcejessie52.4.0esr-1~deb8u1mediumDSA-3987-1
firefox-esrsourcestretch52.4.0esr-1~deb9u1mediumDSA-3987-1
firefox-esrsourcewheezy52.4.0esr-2~deb7u1mediumDLA-1118-1
nsssource(unstable)2:3.33-1medium
nsssourcejessie2:3.26-1+debu8u3mediumDSA-3998-1
nsssourcestretch2:3.26.2-1.1+deb9u1mediumDSA-3998-1
nsssourcewheezy2:3.26-1+debu7u5mediumDLA-1138-1
thunderbirdsource(unstable)1:52.4.0-1medium
thunderbirdsourcejessie1:52.4.0-1~deb8u1mediumDSA-4014-1
thunderbirdsourcestretch1:52.4.0-1~deb9u1mediumDSA-4014-1
thunderbirdsourcewheezy1:52.4.0-1~deb7u1mediumDLA-1153-1

Notes

https://hg.mozilla.org/projects/nss/rev/839200ce0943166a079284bdf45dcc37bb672925
https://bugzilla.mozilla.org/show_bug.cgi?id=1377618 (not public)
https://www.mozilla.org/en-US/security/advisories/mfsa2017-21/#CVE-2017-7805
https://www.mozilla.org/en-US/security/advisories/mfsa2017-22/#CVE-2017-7805
https://www.mozilla.org/en-US/security/advisories/mfsa2017-23/#CVE-2017-7805

Search for package or bug name: Reporting problems