Executive Summary

Informations
Name CVE-2024-43855 First vendor Publication 2024-08-17
Vendor Cve Last vendor Modification 2024-08-22

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:

md: fix deadlock between mddev_suspend and flush bio

Deadlock occurs when mddev is being suspended while some flush bio is in progress. It is a complex issue.

T1. the first flush is at the ending stage, it clears 'mddev->flush_bio'
and tries to submit data, but is blocked because mddev is suspended
by T4. T2. the second flush sets 'mddev->flush_bio', and attempts to queue
md_submit_flush_data(), which is already running (T1) and won't
execute again if on the same CPU as T1. T3. the third flush inc active_io and tries to flush, but is blocked because
'mddev->flush_bio' is not NULL (set by T2). T4. mddev_suspend() is called and waits for active_io dec to 0 which is inc
by T3.

T1 T2 T3 T4
(flush 1) (flush 2) (third 3) (suspend)
md_submit_flush_data
mddev->flush_bio = NULL;
.
. md_flush_request
. mddev->flush_bio = bio
. queue submit_flushes
. .
. . md_handle_request
. . active_io + 1
. . md_flush_request
. . wait !mddev->flush_bio
. .
. . mddev_suspend
. . wait !active_io
. .
. submit_flushes
. queue_work md_submit_flush_data
. //md_submit_flush_data is already running (T1)
.
md_handle_request
wait resume

The root issue is non-atomic inc/dec of active_io during flush process. active_io is dec before md_submit_flush_data is queued, and inc soon after md_submit_flush_data() run.
md_flush_request
active_io + 1
submit_flushes
active_io - 1
md_submit_flush_data
md_handle_request
active_io + 1
make_request
active_io - 1

If active_io is dec after md_handle_request() instead of within submit_flushes(), make_request() can be called directly intead of md_handle_request() in md_submit_flush_data(), and active_io will only inc and dec once in the whole flush process. Deadlock will be fixed.

Additionally, the only difference between fixing the issue and before is that there is no return error handling of make_request(). But after previous patch cleaned md_write_start(), make_requst() only return error in raid5_make_request() by dm-raid, see commit 41425f96d7aa ("dm-raid456, md/raid456: fix a deadlock for dm-raid456 while io concurrent with reshape)". Since dm always splits data and flush operation into two separate io, io size of flush submitted by dm always is 0, make_request() will not be called in md_submit_flush_data(). To prevent future modifications from introducing issues, add WARN_ON to ensure make_request() no error is returned in this context.

Original Source

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

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-476 NULL Pointer Dereference

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 8
Os 3645

Sources (Detail)

https://git.kernel.org/stable/c/2d0738a8322bf4e5bfe693d16b3111928a9ccfbf
https://git.kernel.org/stable/c/32226070813140234b6c507084738e8e8385c5c6
https://git.kernel.org/stable/c/611d5cbc0b35a752e657a83eebadf40d814d006b
https://git.kernel.org/stable/c/ca963eefbc3331222b6121baa696d49ba2008811
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
Date Informations
2025-01-08 03:04:35
  • Multiple Updates
2025-01-07 03:04:08
  • Multiple Updates
2024-12-25 03:02:46
  • Multiple Updates
2024-12-12 03:05:42
  • Multiple Updates
2024-11-23 03:02:44
  • Multiple Updates
2024-11-22 03:00:55
  • Multiple Updates
2024-11-20 02:59:15
  • Multiple Updates
2024-11-14 02:59:34
  • Multiple Updates
2024-11-09 02:59:34
  • Multiple Updates
2024-10-26 02:56:57
  • Multiple Updates
2024-10-25 02:58:50
  • Multiple Updates
2024-10-23 02:58:02
  • Multiple Updates
2024-10-03 02:53:18
  • Multiple Updates
2024-10-02 02:51:42
  • Multiple Updates
2024-09-15 02:49:22
  • Multiple Updates
2024-09-12 02:48:53
  • Multiple Updates
2024-09-07 02:47:51
  • Multiple Updates
2024-09-06 02:47:01
  • Multiple Updates
2024-09-04 02:50:12
  • Multiple Updates
2024-08-22 21:27:54
  • Multiple Updates
2024-08-19 17:27:25
  • Multiple Updates
2024-08-17 17:27:28
  • First insertion