OpenSSH regreSSHion: unsafe logging in a signal handler
A connection-timeout alarm handler calls a logging path that is not async-signal-safe, so firing it while the main thread is mid-allocation races and corrupts the heap.
- Product
- OpenSSH server (portable sshd)
- Vendor
- OpenSSH / OpenBSD
- Affected
- 8.5p1 through 9.7p1 (inclusive); also < 4.4p1
- Fixed in
- 9.8p1
- Weakness
- CWE-364
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 1 Jul 2024
Classified as
References
Related CVEs
- CVE-2024-2961high 8.82024
glibc iconv ISO-2022-CN-EXT out-of-bounds write
Converting to a multibyte charset, one escape-sequence path skips its output-bounds check, writing up to 3 fixed bytes past the buffer.
- CVE-2024-1086high 7.82024
Linux nf_tables double-free via unvalidated verdict (CVE-2024-1086)
A packet-verdict validator checks only the masked action bits, so a DROP verdict carrying a positive error field slips through; the drop path then frees the packet and returns that positive value as an accept, freeing it a second time.
- CVE-2023-5217high 8.82023
libvpx VP8 encoder heap overflow on thread/height reconfigure
A per-row worker array sized from the current frame height is only reallocated when threads exceed one, so a reconfigure that drops to a single thread while growing the frame leaves it undersized and the encoder writes past it.
- CVE-2023-4863high 8.82023
libwebp lossless Huffman table heap overflow (BLASTPASS)
A variable-length code table is written into a buffer sized only for its first level, so crafted long codes make the builder append second-level tables past the allocation: an out-of-bounds heap write reached by decoding one image.