Bug 1222594 (CVE-2024-3120) - VUL-0: CVE-2024-3120: sngrep: stack-buffer overflow due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers
Summary: VUL-0: CVE-2024-3120: sngrep: stack-buffer overflow due to inadequate bounds ...
Status: RESOLVED FIXED
Alias: CVE-2024-3120
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/401220/
Whiteboard:
Keywords:
Depends on:
Blocks: 1225537
  Show dependency treegraph
 
Reported: 2024-04-10 07:31 UTC by SMASH SMASH
Modified: 2024-05-29 11:16 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-10 07:31:38 UTC
A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and sip_parse_extra_headers functions within src/sip.c. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages.

References:
https://github.com/irontec/sngrep/releases/tag/v1.8.1
https://pentraze.com/vulnerability-reports/
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-3120
https://www.cve.org/CVERecord?id=CVE-2024-3120
https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6
Comment 1 Thomas Leroy 2024-04-10 07:31:56 UTC
openSUSE:Factory and Backports are affected.
Comment 2 Martin Hauke 2024-04-10 08:32:00 UTC
should be fixed with
* SR#1166600                                                                                                                  * SR#1166602
Comment 3 Andreas Stieger 2024-05-28 21:39:56 UTC
Missing in Leap 15.6. Please process incoming submission or fix in Leap 15.6 in your chosen way. (bug 1225537)
Comment 4 Andreas Stieger 2024-05-29 11:16:03 UTC
As per bug 1225537 now also fixed in Leap 15.6, closing