SB2024103139 - Multiple vulnerabilities in FreeBSD ctl(4) CAM Target Layer



SB2024103139 - Multiple vulnerabilities in FreeBSD ctl(4) CAM Target Layer

Published: October 31, 2024

Security Bulletin ID SB2024103139
CSH Severity
High
Patch available
YES
Number of vulnerabilities 4
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 75% Medium 25%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 4 vulnerabilities.


1) Improper Initialization (CVE-ID: CVE-2024-8178)

CWE-ID: CWE-665 - Improper Initialization

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a malicious guest to compromise the affected system.

The vulnerability exists due to improper initialization within the ctl_write_buffer() and ctl_read_buffer() functions. A malicious guest can run a specially crafted application to execute arbitrary code on the hypervisor.


2) Out-of-bounds write (CVE-ID: CVE-2024-42416)

CWE-ID: CWE-787 - Out-of-bounds write

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a malicious guest to execute arbitrary code on the system.

The vulnerability exists due to a boundary error within the ctl_report_supported_opcodes() function. A malicious guest running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the bhyve userspace process (e.g. as root).


3) Memory leak (CVE-ID: CVE-2024-43110)

CWE-ID: CWE-401 - Missing release of memory after effective lifetime

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green


The vulnerability allows a malicious guest to gain access to sensitive information.

The vulnerability exists due memory leak within the ctl_request_sense() function. A malicious guest can obtain up to 3 bytes of kernel heap and use this information to achieve code execution on the hypervisor.


4) Use-after-free (CVE-ID: CVE-2024-45063)

CWE-ID: CWE-416 - Use After Free

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber


The vulnerability allows a malicious guest to compromise the hypervisor.

The vulnerability exists due to a use-after-free error within the ctl_write_buffer() function. A malicious guest running in a guest VM that exposes virtio_scsi can trigger a use-after-free error and execute arbitrary code on the hypervisor.


Remediation

Install update from vendor's website.