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.
Published 2023-11-08 09:15:08
Updated 2023-12-14 10:15:09
Source FreeBSD
View at NVD,   CVE.org
Vulnerability category: OverflowMemory Corruption

Products affected by CVE-2023-5941

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

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!