Multiple vulnerabilities in FreeBSD ctl(4) CAM Target Layer



Risk High
Patch available YES
Number of vulnerabilities 4
CVE-ID CVE-2024-8178
CVE-2024-42416
CVE-2024-43110
CVE-2024-45063
CWE-ID CWE-665
CWE-787
CWE-401
CWE-416
Exploitation vector Network
Public exploit N/A
Vulnerable software
FreeBSD
Operating systems & Components / Operating system

Vendor FreeBSD Foundation

Security Bulletin

This security bulletin contains information about 4 vulnerabilities.

1) Improper Initialization

EUVDB-ID: #VU99536

Risk: High

CVSSv4.0: 6.1 [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]

CVE-ID: CVE-2024-8178

CWE-ID: CWE-665 - Improper Initialization

Exploit availability: No

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

FreeBSD: 13.3 - 14.1

CPE2.3 External links

https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Out-of-bounds write

EUVDB-ID: #VU99537

Risk: High

CVSSv4.0: 6.1 [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]

CVE-ID: CVE-2024-42416

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

Exploit availability: No

Description

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).

Mitigation

Install updates from vendor's website.

Vulnerable software versions

FreeBSD: 13.3 - 14.1

CPE2.3 External links

https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Memory leak

EUVDB-ID: #VU99539

Risk: Medium

CVSSv4.0: 4.6 [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]

CVE-ID: CVE-2024-43110

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

Exploit availability: No

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

FreeBSD: 13.3 - 14.1

CPE2.3 External links

https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) Use-after-free

EUVDB-ID: #VU99540

Risk: High

CVSSv4.0: 6.1 [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]

CVE-ID: CVE-2024-45063

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

FreeBSD: 13.3 - 14.1

CPE2.3 External links

https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###