Vulnerability Details : CVE-2023-5941
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.
Vulnerability category: OverflowMemory Corruption
Products affected by CVE-2023-5941
- cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:rc2-p2:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:rc2-p1:*:*:*:*:*:*
- 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:13.2:-:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:p3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.2:p1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:p4:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.2:p2:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:p5:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.2:p3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.2:p4:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:12.4:p6:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-5941
0.66%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 70 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-5941
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2023-5941
-
The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.Assigned by:
- nvd@nist.gov (Primary)
- secteam@freebsd.org (Secondary)
-
The product writes data past the end, or before the beginning, of the intended buffer.Assigned by:
- nvd@nist.gov (Primary)
- secteam@freebsd.org (Secondary)
References for CVE-2023-5941
-
https://security.freebsd.org/advisories/FreeBSD-SA-23:15.stdio.asc
Vendor Advisory
-
https://security.netapp.com/advisory/ntap-20231214-0004/
CVE-2023-5941 FreeBSD Vulnerability in NetApp Products | NetApp Product Security
Jump to