CVE Vulnerabilities

CVE-2019-5605

Improper Initialization

Published: Jul 26, 2019 | Modified: Mar 01, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
6.8 MEDIUM
AV:N/AC:L/Au:S/C:C/I:N/A:N
RedHat/V2
RedHat/V3
Ubuntu

In FreeBSD 11.3-STABLE before r350217, 11.3-RELEASE before 11.3-RELEASE-p1, and 11.2-RELEASE before 11.2-RELEASE-p12, due to insufficient initialization of memory copied to userland in the freebsd32_ioctl interface, small amounts of kernel memory may be disclosed to userland processes. This may allow an attacker to leverage this information to obtain elevated privileges either directly or indirectly.

Weakness

The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.

Affected Software

Name Vendor Start Version End Version
Freebsd Freebsd 11.0 (including) 11.0 (including)
Freebsd Freebsd 11.2 (including) 11.2 (including)
Freebsd Freebsd 11.2-p10 (including) 11.2-p10 (including)
Freebsd Freebsd 11.2-p11 (including) 11.2-p11 (including)
Freebsd Freebsd 11.2-p2 (including) 11.2-p2 (including)
Freebsd Freebsd 11.2-p3 (including) 11.2-p3 (including)
Freebsd Freebsd 11.2-p4 (including) 11.2-p4 (including)
Freebsd Freebsd 11.2-p5 (including) 11.2-p5 (including)
Freebsd Freebsd 11.2-p6 (including) 11.2-p6 (including)
Freebsd Freebsd 11.2-p7 (including) 11.2-p7 (including)
Freebsd Freebsd 11.2-p8 (including) 11.2-p8 (including)
Freebsd Freebsd 11.2-p9 (including) 11.2-p9 (including)
Freebsd Freebsd 11.2-rc3 (including) 11.2-rc3 (including)
Freebsd Freebsd 11.3 (including) 11.3 (including)

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, in Java, if the programmer does not explicitly initialize a variable, then the code could produce a compile-time error (if the variable is local) or automatically initialize the variable to the default value for the variable’s type. In Perl, if explicit initialization is not performed, then a default value of undef is assigned, which is interpreted as 0, false, or an equivalent value depending on the context in which the variable is accessed.

References