CVE-2022-21716

NameCVE-2022-21716
DescriptionTwisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 22.2.0, Twisted SSH client and server implement is able to accept an infinite amount of data for the peer's SSH version identifier. This ends up with a buffer using all the available memory. The attach is a simple as `nc -rv localhost 22 < /dev/zero`. A patch is available in version 22.2.0. There are currently no known workarounds.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2938-1, ELA-575-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
twisted (PTS)jessie, jessie (lts)14.0.2-3+deb8u6fixed
stretch (security)16.6.0-2+deb9u3fixed
stretch (lts), stretch16.6.0-2+deb9u5fixed
buster, buster (lts)18.9.0-3+deb10u3fixed
buster (security)18.9.0-3+deb10u2fixed
bullseye20.3.0-7+deb11u1fixed
bullseye (security)20.3.0-7+deb11u2fixed
bookworm (security), bookworm22.4.0-4+deb12u1fixed
sid, trixie24.11.0-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
twistedsourcejessie14.0.2-3+deb8u4ELA-575-1
twistedsourcestretch16.6.0-2+deb9u2DLA-2938-1
twistedsourcebuster18.9.0-3+deb10u1
twistedsourcebullseye20.3.0-7+deb11u1
twistedsource(unstable)22.2.0-1

Notes

https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx
https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1
https://twistedmatrix.com/trac/ticket/10284

Search for package or bug name: Reporting problems