Name | CVE-2021-42340 |
Description | The fix for bug 63362 present in Apache Tomcat 10.1.0-M1 to 10.1.0-M5, 10.0.0-M1 to 10.0.11, 9.0.40 to 9.0.53 and 8.5.60 to 8.5.71 introduced a memory leak. The object introduced to collect metrics for HTTP upgrade connections was not released for WebSocket connections once the connection was closed. This created a memory leak that, over time, could lead to a denial of service via an OutOfMemoryError. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5009-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
tomcat7 (PTS) | jessie, jessie (lts) | 7.0.56-3+really7.0.109-1+deb8u6 | fixed |
stretch | 7.0.75-1 | vulnerable | |
tomcat8 (PTS) | jessie, jessie (lts) | 8.0.14-1+deb8u28 | fixed |
stretch (security) | 8.5.54-0+deb9u8 | fixed | |
stretch (lts), stretch | 8.5.54-0+deb9u15 | fixed | |
tomcat9 (PTS) | buster (security), buster, buster (lts) | 9.0.31-1~deb10u12 | fixed |
bullseye (security), bullseye | 9.0.43-2~deb11u10 | fixed | |
bookworm | 9.0.70-2 | fixed | |
sid, trixie | 9.0.95-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
tomcat7 | source | jessie | (not affected) | |||
tomcat7 | source | stretch | (unfixed) | end-of-life | ||
tomcat7 | source | (unstable) | (unfixed) | |||
tomcat8 | source | jessie | (not affected) | |||
tomcat8 | source | stretch | (not affected) | |||
tomcat8 | source | (unstable) | (unfixed) | |||
tomcat9 | source | buster | (not affected) | |||
tomcat9 | source | bullseye | 9.0.43-2~deb11u3 | DSA-5009-1 | ||
tomcat9 | source | (unstable) | 9.0.54-1 |
[buster] - tomcat9 <not-affected> (Vulnerable code introduced later)
[stretch] - tomcat8 <not-affected> (Vulnerable code introduced later)
https://www.openwall.com/lists/oss-security/2021/10/14/1
https://github.com/apache/tomcat/commit/80f1438ec45e77a07b96419808971838d259eb47 (9.0.54)
https://github.com/apache/tomcat/commit/d27535bdee95d252418201eb21e9d29476aa6b6a (8.5.72)
Fix for https://bz.apache.org/bugzilla/show_bug.cgi?id=63362 introduced the memory leak.
[jessie] - tomcat7 <not-affected> (Vulnerable code not present)
[jessie] - tomcat8 <not-affected> (Vulnerable code not present)