5.5
MEDIUM
CVE-2024-49933
"Linux Kernel Blk-iocost Out of Bound Shift Vulnerability"
Description

In the Linux kernel, the following vulnerability has been resolved: blk_iocost: fix more out of bound shifts Recently running UBSAN caught few out of bound shifts in the ioc_forgive_debts() function: UBSAN: shift-out-of-bounds in block/blk-iocost.c:2142:38 shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long long') ... UBSAN: shift-out-of-bounds in block/blk-iocost.c:2144:30 shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long long') ... Call Trace: <IRQ> dump_stack_lvl+0xca/0x130 __ubsan_handle_shift_out_of_bounds+0x22c/0x280 ? __lock_acquire+0x6441/0x7c10 ioc_timer_fn+0x6cec/0x7750 ? blk_iocost_init+0x720/0x720 ? call_timer_fn+0x5d/0x470 call_timer_fn+0xfa/0x470 ? blk_iocost_init+0x720/0x720 __run_timer_base+0x519/0x700 ... Actual impact of this issue was not identified but I propose to fix the undefined behaviour. The proposed fix to prevent those out of bound shifts consist of precalculating exponent before using it the shift operations by taking min value from the actual exponent and maximum possible number of bits.

INFO

Published Date :

Oct. 21, 2024, 6:15 p.m.

Last Modified :

Nov. 13, 2024, 3:09 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-49933 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-49933 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-49933 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Nov. 13, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/1ab2cfe19700fb3dde4c7dfec392acff34db3120 No Types Assigned https://git.kernel.org/stable/c/1ab2cfe19700fb3dde4c7dfec392acff34db3120 Patch
    Changed Reference Type https://git.kernel.org/stable/c/1b120f151871eb47ce9f283c007af3f8ae1d990e No Types Assigned https://git.kernel.org/stable/c/1b120f151871eb47ce9f283c007af3f8ae1d990e Patch
    Changed Reference Type https://git.kernel.org/stable/c/1f61d509257d6a05763d05bf37943b35306522b1 No Types Assigned https://git.kernel.org/stable/c/1f61d509257d6a05763d05bf37943b35306522b1 Patch
    Changed Reference Type https://git.kernel.org/stable/c/364022095bdd4108efdaaa68576afa4712a5d085 No Types Assigned https://git.kernel.org/stable/c/364022095bdd4108efdaaa68576afa4712a5d085 Patch
    Changed Reference Type https://git.kernel.org/stable/c/59121bb38fdc01434ea3fe361ee02b59f036227f No Types Assigned https://git.kernel.org/stable/c/59121bb38fdc01434ea3fe361ee02b59f036227f Patch
    Changed Reference Type https://git.kernel.org/stable/c/9bce8005ec0dcb23a58300e8522fe4a31da606fa No Types Assigned https://git.kernel.org/stable/c/9bce8005ec0dcb23a58300e8522fe4a31da606fa Patch
    Changed Reference Type https://git.kernel.org/stable/c/f4ef9bef023d5c543cb0f3194ecacfd47ef590ec No Types Assigned https://git.kernel.org/stable/c/f4ef9bef023d5c543cb0f3194ecacfd47ef590ec Patch
    Added CWE NIST NVD-CWE-noinfo
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.10.227 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.168 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.113 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.55 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11 up to (excluding) 6.11.3
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 21, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: blk_iocost: fix more out of bound shifts Recently running UBSAN caught few out of bound shifts in the ioc_forgive_debts() function: UBSAN: shift-out-of-bounds in block/blk-iocost.c:2142:38 shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long long') ... UBSAN: shift-out-of-bounds in block/blk-iocost.c:2144:30 shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long long') ... Call Trace: <IRQ> dump_stack_lvl+0xca/0x130 __ubsan_handle_shift_out_of_bounds+0x22c/0x280 ? __lock_acquire+0x6441/0x7c10 ioc_timer_fn+0x6cec/0x7750 ? blk_iocost_init+0x720/0x720 ? call_timer_fn+0x5d/0x470 call_timer_fn+0xfa/0x470 ? blk_iocost_init+0x720/0x720 __run_timer_base+0x519/0x700 ... Actual impact of this issue was not identified but I propose to fix the undefined behaviour. The proposed fix to prevent those out of bound shifts consist of precalculating exponent before using it the shift operations by taking min value from the actual exponent and maximum possible number of bits.
    Added Reference kernel.org https://git.kernel.org/stable/c/1f61d509257d6a05763d05bf37943b35306522b1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f4ef9bef023d5c543cb0f3194ecacfd47ef590ec [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/59121bb38fdc01434ea3fe361ee02b59f036227f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1ab2cfe19700fb3dde4c7dfec392acff34db3120 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1b120f151871eb47ce9f283c007af3f8ae1d990e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/364022095bdd4108efdaaa68576afa4712a5d085 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/9bce8005ec0dcb23a58300e8522fe4a31da606fa [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-49933 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-49933 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability