CWE
908 909
EPSS
0.043%
Advisory Published
Updated

CVE-2024-8178: Multiple issues in ctl(4) CAM Target Layer

First published: Thu Sep 05 2024(Updated: )

The ctl_write_buffer and ctl_read_buffer functions allocated memory to be returned to userspace, without initializing it. Malicious software 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, which typically runs as root. Note that bhyve runs in a Capsicum sandbox, so malicious code is constrained by the capabilities available to the bhyve process. A malicious iSCSI initiator could achieve remote code execution on the iSCSI target host.

Credit: secteam@freebsd.org

Affected SoftwareAffected VersionHow to fix
FreeBSD Kernel>=13.0<13.3
FreeBSD Kernel=13.3
FreeBSD Kernel=13.3-p1
FreeBSD Kernel=13.3-p2
FreeBSD Kernel=13.3-p3
FreeBSD Kernel=13.3-p4
FreeBSD Kernel=13.3-p5
FreeBSD Kernel=13.4-beta3
FreeBSD Kernel=14.0
FreeBSD Kernel=14.0-beta5
FreeBSD Kernel=14.0-p1
FreeBSD Kernel=14.0-p2
FreeBSD Kernel=14.0-p3
FreeBSD Kernel=14.0-p4
FreeBSD Kernel=14.0-p5
FreeBSD Kernel=14.0-p6
FreeBSD Kernel=14.0-p7
FreeBSD Kernel=14.0-p8
FreeBSD Kernel=14.0-p9
FreeBSD Kernel=14.0-rc3
FreeBSD Kernel=14.0-rc4-p1
FreeBSD Kernel=14.1
FreeBSD Kernel=14.1-p1
FreeBSD Kernel=14.1-p2
FreeBSD Kernel=14.1-p3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-8178?

    CVE-2024-8178 is classified as a high severity vulnerability due to potential code execution risks on the host.

  • How do I fix CVE-2024-8178?

    To mitigate CVE-2024-8178, update your FreeBSD installation to the latest version or apply the appropriate security patches.

  • What systems are affected by CVE-2024-8178?

    CVE-2024-8178 affects FreeBSD versions 13.0 through 14.1, including specific point releases.

  • Can CVE-2024-8178 be exploited remotely?

    Yes, CVE-2024-8178 can be exploited by malicious software running in a guest VM, potentially exposing the host system.

  • What are the symptoms of exploitation of CVE-2024-8178?

    Exploitation of CVE-2024-8178 may result in unauthorized code execution on the host system, leading to potential system compromises.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203