netfilter: conntrack: remove sprintf usage
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: conntrack: remove sprintf usage Replace it with scnprintf, the buffer sizes are expected to be large enough to hold the result, no need for snprintf+overflow check. Increase buffer size in mangle_content_len() while at it. BUG: KASAN: stack-out-of-bounds in vsnprintf+0xea5/0x1270 Write of size 1 at addr [..] vsnprintf+0xea5/0x1270 sprintf+0xb1/0xe0 mangle_content_len+0x1ac/0x280 nf_nat_sdp_session+0x1cc/0x240 process_sdp+0x8f8/0xb80 process_invite_request+0x108/0x2b0 process_sip_msg+0x5da/0xf50 sip_help_tcp+0x45e/0x780 nf_confirm+0x34d/0x990 [..]
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in 2f793ba78470a99f40389b7dc60a81d9f5ad3956; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in 6bbf829b4c1b44c941c47dd0d710f1393258f3d5; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in ab64e61c9323fa6de21bd20da1ddb29a0fb65d34; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in 1c9fb8aeed06790d42cdcd00f6c3ce0b9e926c1e; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in a8e0a32a23d3f34862af3b4da792ecb3a891a9a3; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in 8e3be0d12615a173fe260cd42753ca7a001acbf2; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in c08ff52e44945e6ef4ce0790f49ea761b060c45b; From 9fafcd7b203229c3f3893a475741afc27e276306 · fixed in 6e7066bdb481a87fe88c4fa563e348c03b2d373d
- Linux Linux
2.6.20
- KernelLinux
From 2.6.20 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.141; From 6.7.0 · fixed in 6.12.91; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10
References 8
git.kernel.org
- stable/c/2f793ba78470a99f40389b7dc60a81d9f5ad3956
- stable/c/6bbf829b4c1b44c941c47dd0d710f1393258f3d5
- stable/c/ab64e61c9323fa6de21bd20da1ddb29a0fb65d34
- stable/c/1c9fb8aeed06790d42cdcd00f6c3ce0b9e926c1e
- stable/c/a8e0a32a23d3f34862af3b4da792ecb3a891a9a3
- stable/c/8e3be0d12615a173fe260cd42753ca7a001acbf2
- stable/c/c08ff52e44945e6ef4ce0790f49ea761b060c45b
- stable/c/6e7066bdb481a87fe88c4fa563e348c03b2d373d