CVE-2023-5941
FreeBSD libc __sflush Write-Buffered Stream Heap Buffer Overflow
Description
In versions of FreeBSD 12.4-RELEASE prior to 12.4-RELEASE-p7 and FreeBSD 13.2-RELEASE prior to 13.2-RELEASE-p5 the __sflush() stdio function in libc does not correctly update FILE objects' write space members for write-buffered streams when the write(2) system call returns an error. Depending on the nature of an application that calls libc's stdio functions and the presence of errors returned from the write(2) system call (or an overridden stdio write routine) a heap buffer overflow may occur. Such overflows may lead to data corruption or the execution of arbitrary code at the privilege level of the calling program.
INFO
Published Date :
Nov. 8, 2023, 9:15 a.m.
Last Modified :
Dec. 14, 2023, 10:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-5941
.
URL | Resource |
---|---|
https://security.freebsd.org/advisories/FreeBSD-SA-23:15.stdio.asc | Vendor Advisory |
https://security.netapp.com/advisory/ntap-20231214-0004/ |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-5941
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-5941
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Dec. 14, 2023
Action Type Old Value New Value Added Reference FreeBSD https://security.netapp.com/advisory/ntap-20231214-0004/ [No types assigned] -
Initial Analysis by [email protected]
Nov. 16, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://security.freebsd.org/advisories/FreeBSD-SA-23:15.stdio.asc No Types Assigned https://security.freebsd.org/advisories/FreeBSD-SA-23:15.stdio.asc Vendor Advisory Added CWE NIST CWE-787 Added CWE NIST CWE-131 Added CPE Configuration OR *cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* versions up to (excluding) 12.4 *cpe:2.3:o:freebsd:freebsd:12.4:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:p6:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:rc2-p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:12.4:rc2-p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* versions from (including) 13.0 up to (excluding) 13.2 *cpe:2.3:o:freebsd:freebsd:13.2:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:13.2:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:13.2:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:13.2:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:13.2:p4:*:*:*:*:*:* -
CVE Received by [email protected]
Nov. 08, 2023
Action Type Old Value New Value Added Description In versions of FreeBSD 12.4-RELEASE prior to 12.4-RELEASE-p7 and FreeBSD 13.2-RELEASE prior to 13.2-RELEASE-p5 the __sflush() stdio function in libc does not correctly update FILE objects' write space members for write-buffered streams when the write(2) system call returns an error. Depending on the nature of an application that calls libc's stdio functions and the presence of errors returned from the write(2) system call (or an overridden stdio write routine) a heap buffer overflow may occur. Such overflows may lead to data corruption or the execution of arbitrary code at the privilege level of the calling program. Added Reference FreeBSD https://security.freebsd.org/advisories/FreeBSD-SA-23:15.stdio.asc [No types assigned] Added CWE FreeBSD CWE-787 Added CWE FreeBSD CWE-131
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-5941
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-5941
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.25 }} 0.10%
score
0.65605
percentile