Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-5AFCC9A4-7E04-11EE-8E38-002590C1F29C (CVE-2023-5941): FreeBSD -- libc stdio buffer overflow

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-5AFCC9A4-7E04-11EE-8E38-002590C1F29C (CVE-2023-5941): FreeBSD -- libc stdio buffer overflow

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
11/08/2023
Created
11/14/2023
Added
11/09/2023
Modified
11/20/2023

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.

Solution(s)

  • freebsd-upgrade-base-12_4-release-p7
  • freebsd-upgrade-base-13_2-release-p5

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;