Executive Summary

Informations
Name CVE-2024-42240 First vendor Publication 2024-08-07
Vendor Cve Last vendor Modification 2024-08-08

Security-Database Scoring CVSS v3

Cvss vector : CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Overall CVSS Score 5.5
Base Score 5.5 Environmental Score 5.5
impact SubScore 3.6 Temporal Score 5.5
Exploitabality Sub Score 1.8
 
Attack Vector Local Attack Complexity Low
Privileges Required Low User Interaction None
Scope Unchanged Confidentiality Impact None
Integrity Impact None Availability Impact High
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector :
Cvss Base Score N/A Attack Range N/A
Cvss Impact Score N/A Attack Complexity N/A
Cvss Expoit Score N/A Authentication N/A
Calculate full CVSS 2.0 Vectors scores

Detail

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


? entry_SYSENTER_compat_after_hwframe+0x6e/0x8d

[ bp: Massage commit message. ]

Original Source

Url : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42240

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 8
Os 3658

Sources (Detail)

https://git.kernel.org/stable/c/08518d48e5b744620524f0acd7c26c19bda7f513
https://git.kernel.org/stable/c/a765679defe1dc1b8fa01928a6ad6361e72a1364
https://git.kernel.org/stable/c/ac8b270b61d48fcc61f052097777e3b5e11591e0
https://git.kernel.org/stable/c/dae3543db8f0cf8ac1a198c3bb4b6e3c24d576cf
https://git.kernel.org/stable/c/db56615e96c439e13783d7715330e824b4fd4b84
Source Url

Alert History

If you want to see full details history, please login or register.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Date Informations
2025-03-29 03:39:03
  • Multiple Updates
2025-03-28 13:43:53
  • Multiple Updates
2025-03-28 03:17:27
  • Multiple Updates
2025-03-19 03:12:50
  • Multiple Updates
2025-03-18 03:25:45
  • Multiple Updates
2025-03-14 03:13:03
  • Multiple Updates
2025-03-06 14:09:35
  • Multiple Updates
2025-02-22 03:23:06
  • Multiple Updates
2025-01-08 03:04:13
  • Multiple Updates
2025-01-07 03:03:46
  • Multiple Updates
2024-12-25 03:02:24
  • Multiple Updates
2024-12-12 03:05:20
  • Multiple Updates
2024-11-23 03:02:24
  • Multiple Updates
2024-11-22 03:00:35
  • Multiple Updates
2024-11-20 02:58:56
  • Multiple Updates
2024-11-14 02:59:14
  • Multiple Updates
2024-11-09 02:59:15
  • Multiple Updates
2024-10-26 02:56:39
  • Multiple Updates
2024-10-25 02:58:34
  • Multiple Updates
2024-10-23 02:57:46
  • Multiple Updates
2024-10-03 02:53:05
  • Multiple Updates
2024-10-02 02:51:28
  • Multiple Updates
2024-09-15 02:49:11
  • Multiple Updates
2024-09-12 02:48:43
  • Multiple Updates
2024-09-07 02:47:42
  • Multiple Updates
2024-09-06 02:46:52
  • Multiple Updates
2024-09-04 02:50:05
  • Multiple Updates
2024-08-22 02:47:56
  • Multiple Updates
2024-08-08 21:27:36
  • Multiple Updates
2024-08-08 00:27:22
  • Multiple Updates
2024-08-07 21:27:25
  • First insertion