CVE-2014-1490: Use After Free
As per: http://tools.ietf.org/html/rfc5077#section-3.3:
"The client MUST NOT treat the ticket as valid until it has verified the server's Finished message."
This bug affects the case illustrated in figure 2 of RFC 5077, "Message Flow for Abbreviated Handshake Using New Session Ticket," where a NewSessionTicket message is sent during a session resumption, replacing the session ticket for a session already stored in the cache. That session may already be in use by other connections.
It appear there are race conditions (TOCTOU, potentially use-after-free) to lack of locking around reads and updates of the sessionTicket field of sslSessionIDStr. For example, these races can happen when thread A is trying to resume a session concurrently with thread B that has already started resuming session that same session, and where thread B has received a NewSessionTicket extension that will cause it to update the sessionTicket field of the sid that thread A is trying to read. This may cause a use-after-free when ssl3SetSIDSessionTicket calls SECITEMFreeItem to free the session ticket data when ssl3SendSessionTicketXtn is trying to read it. There are probably other similar problems.
Acknowledgements:
Red Hat would like to thank the Mozilla project for reporting this issue. Upstream acknowledges Brian Smith as the original reporter of this issue.
Other sources
Race condition in libssl in Mozilla Network Security Services (NSS) before 3.15.4, as used in Mozilla Firefox before 27.0, Firefox ESR 24.x before 24.3, Thunderbird before 24.3, SeaMonkey before 2.24, and other products, allows remote attackers to cause a denial of service (use-after-free) or possibly have unspecified other impact via vectors involving a resumption handshake that triggers incorrect replacement of a session ticket.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/nssto a version that resolves this vulnerability.Fixed in 3.15.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.15.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 27.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 24.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.24
Event History
Frequently Asked Questions
What is the severity of CVE-2014-1490?
CVE-2014-1490 is classified as a moderate severity vulnerability that can lead to a denial of service.
How do I fix CVE-2014-1490?
To mitigate CVE-2014-1490, upgrade to the latest versions of the affected software, such as Mozilla Firefox 27.0 or later.
What products are affected by CVE-2014-1490?
CVE-2014-1490 affects Mozilla Firefox, Firefox ESR, Thunderbird, SeaMonkey, and other products utilizing Mozilla NSS before specified versions.
What type of vulnerability is CVE-2014-1490?
CVE-2014-1490 involves a race condition leading to a use-after-free vulnerability.
Can CVE-2014-1490 be exploited remotely?
Yes, CVE-2014-1490 can be exploited remotely by attackers to cause a denial of service.