Rapid7 Vulnerability & Exploit Database

Ubuntu: (Multiple Advisories) (CVE-2024-42240): Linux kernel vulnerabilities

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

Ubuntu: (Multiple Advisories) (CVE-2024-42240): Linux kernel vulnerabilities

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
08/07/2024
Created
09/17/2024
Added
09/16/2024
Modified
11/26/2024

Description

In the Linux kernel, the following vulnerability has been resolved: x86/bhi: Avoid warning in #DB handler due to BHI mitigation When BHI mitigation is enabled, if SYSENTER is invoked with the TF flag set then entry_SYSENTER_compat() uses CLEAR_BRANCH_HISTORY and calls the clear_bhb_loop() before the TF flag is cleared. This causes the #DB handler (exc_debug_kernel()) to issue a warning because single-step is used outside the entry_SYSENTER_compat() function. To address this issue, entry_SYSENTER_compat() should use CLEAR_BRANCH_HISTORY after making sure the TF flag is cleared. The problem can be reproduced with the following sequence: $ cat sysenter_step.c int main() { asm("pushf; pop %ax; bts $8,%ax; push %ax; popf; sysenter"); } $ gcc -o sysenter_step sysenter_step.c $ ./sysenter_step Segmentation fault (core dumped) The program is expected to crash, and the #DB handler will issue a warning. Kernel log: WARNING: CPU: 27 PID: 7000 at arch/x86/kernel/traps.c:1009 exc_debug_kernel+0xd2/0x160 ... RIP: 0010:exc_debug_kernel+0xd2/0x160 ... Call Trace: <#DB> ? show_regs+0x68/0x80 ? __warn+0x8c/0x140 ? exc_debug_kernel+0xd2/0x160 ? report_bug+0x175/0x1a0 ? handle_bug+0x44/0x90 ? exc_invalid_op+0x1c/0x70 ? asm_exc_invalid_op+0x1f/0x30 ? exc_debug_kernel+0xd2/0x160 exc_debug+0x43/0x50 asm_exc_debug+0x1e/0x40 RIP: 0010:clear_bhb_loop+0x0/0xb0 ... </#DB> <TASK> ? entry_SYSENTER_compat_after_hwframe+0x6e/0x8d </TASK> [ bp: Massage commit message. ]

Solution(s)

  • ubuntu-upgrade-linux-image-4-15-0-1137-oracle
  • ubuntu-upgrade-linux-image-4-15-0-1158-kvm
  • ubuntu-upgrade-linux-image-4-15-0-1168-gcp
  • ubuntu-upgrade-linux-image-4-15-0-1175-aws
  • ubuntu-upgrade-linux-image-4-15-0-1183-azure
  • ubuntu-upgrade-linux-image-4-15-0-231-generic
  • ubuntu-upgrade-linux-image-4-15-0-231-lowlatency
  • ubuntu-upgrade-linux-image-5-15-0-1035-xilinx-zynqmp
  • ubuntu-upgrade-linux-image-5-15-0-1052-gkeop
  • ubuntu-upgrade-linux-image-5-15-0-1062-ibm
  • ubuntu-upgrade-linux-image-5-15-0-1062-raspi
  • ubuntu-upgrade-linux-image-5-15-0-1064-intel-iotg
  • ubuntu-upgrade-linux-image-5-15-0-1064-nvidia
  • ubuntu-upgrade-linux-image-5-15-0-1064-nvidia-lowlatency
  • ubuntu-upgrade-linux-image-5-15-0-1066-gke
  • ubuntu-upgrade-linux-image-5-15-0-1066-kvm
  • ubuntu-upgrade-linux-image-5-15-0-1067-oracle
  • ubuntu-upgrade-linux-image-5-15-0-1068-gcp
  • ubuntu-upgrade-linux-image-5-15-0-1069-aws
  • ubuntu-upgrade-linux-image-5-15-0-1072-azure
  • ubuntu-upgrade-linux-image-5-15-0-1072-azure-fde
  • ubuntu-upgrade-linux-image-5-15-0-121-generic
  • ubuntu-upgrade-linux-image-5-15-0-121-generic-64k
  • ubuntu-upgrade-linux-image-5-15-0-121-generic-lpae
  • ubuntu-upgrade-linux-image-5-15-0-121-lowlatency
  • ubuntu-upgrade-linux-image-5-15-0-121-lowlatency-64k
  • ubuntu-upgrade-linux-image-6-8-0-1013-gke
  • ubuntu-upgrade-linux-image-6-8-0-1014-ibm
  • ubuntu-upgrade-linux-image-6-8-0-1014-raspi
  • ubuntu-upgrade-linux-image-6-8-0-1015-oracle
  • ubuntu-upgrade-linux-image-6-8-0-1015-oracle-64k
  • ubuntu-upgrade-linux-image-6-8-0-1016-azure
  • ubuntu-upgrade-linux-image-6-8-0-1016-azure-fde
  • ubuntu-upgrade-linux-image-6-8-0-1016-gcp
  • ubuntu-upgrade-linux-image-6-8-0-1016-oem
  • ubuntu-upgrade-linux-image-6-8-0-1017-azure
  • ubuntu-upgrade-linux-image-6-8-0-1017-azure-fde
  • ubuntu-upgrade-linux-image-6-8-0-1017-gcp
  • ubuntu-upgrade-linux-image-6-8-0-1017-nvidia
  • ubuntu-upgrade-linux-image-6-8-0-1017-nvidia-64k
  • ubuntu-upgrade-linux-image-6-8-0-1017-nvidia-lowlatency
  • ubuntu-upgrade-linux-image-6-8-0-1017-nvidia-lowlatency-64k
  • ubuntu-upgrade-linux-image-6-8-0-1018-aws
  • ubuntu-upgrade-linux-image-6-8-0-48-generic
  • ubuntu-upgrade-linux-image-6-8-0-48-generic-64k
  • ubuntu-upgrade-linux-image-6-8-0-48-lowlatency
  • ubuntu-upgrade-linux-image-6-8-0-48-lowlatency-64k
  • ubuntu-upgrade-linux-image-aws
  • ubuntu-upgrade-linux-image-aws-hwe
  • ubuntu-upgrade-linux-image-aws-lts-18-04
  • ubuntu-upgrade-linux-image-aws-lts-22-04
  • ubuntu-upgrade-linux-image-azure
  • ubuntu-upgrade-linux-image-azure-cvm
  • ubuntu-upgrade-linux-image-azure-fde
  • ubuntu-upgrade-linux-image-azure-fde-lts-22-04
  • ubuntu-upgrade-linux-image-azure-lts-18-04
  • ubuntu-upgrade-linux-image-azure-lts-22-04
  • ubuntu-upgrade-linux-image-gcp
  • ubuntu-upgrade-linux-image-gcp-lts-18-04
  • ubuntu-upgrade-linux-image-gcp-lts-22-04
  • ubuntu-upgrade-linux-image-generic
  • ubuntu-upgrade-linux-image-generic-64k
  • ubuntu-upgrade-linux-image-generic-64k-hwe-20-04
  • ubuntu-upgrade-linux-image-generic-64k-hwe-22-04
  • ubuntu-upgrade-linux-image-generic-64k-hwe-24-04
  • ubuntu-upgrade-linux-image-generic-hwe-16-04
  • ubuntu-upgrade-linux-image-generic-hwe-20-04
  • ubuntu-upgrade-linux-image-generic-hwe-22-04
  • ubuntu-upgrade-linux-image-generic-hwe-24-04
  • ubuntu-upgrade-linux-image-generic-lpae
  • ubuntu-upgrade-linux-image-generic-lpae-hwe-20-04
  • ubuntu-upgrade-linux-image-gke
  • ubuntu-upgrade-linux-image-gke-5-15
  • ubuntu-upgrade-linux-image-gkeop
  • ubuntu-upgrade-linux-image-gkeop-5-15
  • ubuntu-upgrade-linux-image-ibm
  • ubuntu-upgrade-linux-image-ibm-classic
  • ubuntu-upgrade-linux-image-ibm-lts-24-04
  • ubuntu-upgrade-linux-image-intel
  • ubuntu-upgrade-linux-image-intel-iotg
  • ubuntu-upgrade-linux-image-kvm
  • ubuntu-upgrade-linux-image-lowlatency
  • ubuntu-upgrade-linux-image-lowlatency-64k
  • ubuntu-upgrade-linux-image-lowlatency-64k-hwe-20-04
  • ubuntu-upgrade-linux-image-lowlatency-64k-hwe-22-04
  • ubuntu-upgrade-linux-image-lowlatency-64k-hwe-24-04
  • ubuntu-upgrade-linux-image-lowlatency-hwe-16-04
  • ubuntu-upgrade-linux-image-lowlatency-hwe-20-04
  • ubuntu-upgrade-linux-image-lowlatency-hwe-22-04
  • ubuntu-upgrade-linux-image-lowlatency-hwe-24-04
  • ubuntu-upgrade-linux-image-nvidia
  • ubuntu-upgrade-linux-image-nvidia-6-8
  • ubuntu-upgrade-linux-image-nvidia-64k
  • ubuntu-upgrade-linux-image-nvidia-64k-6-8
  • ubuntu-upgrade-linux-image-nvidia-64k-hwe-22-04
  • ubuntu-upgrade-linux-image-nvidia-hwe-22-04
  • ubuntu-upgrade-linux-image-nvidia-lowlatency
  • ubuntu-upgrade-linux-image-nvidia-lowlatency-64k
  • ubuntu-upgrade-linux-image-oem
  • ubuntu-upgrade-linux-image-oem-20-04
  • ubuntu-upgrade-linux-image-oem-20-04b
  • ubuntu-upgrade-linux-image-oem-20-04c
  • ubuntu-upgrade-linux-image-oem-20-04d
  • ubuntu-upgrade-linux-image-oem-22-04
  • ubuntu-upgrade-linux-image-oem-22-04a
  • ubuntu-upgrade-linux-image-oem-22-04b
  • ubuntu-upgrade-linux-image-oem-22-04c
  • ubuntu-upgrade-linux-image-oem-22-04d
  • ubuntu-upgrade-linux-image-oem-24-04
  • ubuntu-upgrade-linux-image-oem-24-04a
  • ubuntu-upgrade-linux-image-oracle
  • ubuntu-upgrade-linux-image-oracle-64k
  • ubuntu-upgrade-linux-image-oracle-lts-18-04
  • ubuntu-upgrade-linux-image-oracle-lts-22-04
  • ubuntu-upgrade-linux-image-raspi
  • ubuntu-upgrade-linux-image-raspi-nolpae
  • ubuntu-upgrade-linux-image-virtual
  • ubuntu-upgrade-linux-image-virtual-hwe-16-04
  • ubuntu-upgrade-linux-image-virtual-hwe-20-04
  • ubuntu-upgrade-linux-image-virtual-hwe-22-04
  • ubuntu-upgrade-linux-image-virtual-hwe-24-04
  • ubuntu-upgrade-linux-image-xilinx-zynqmp

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

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

;