7.0
HIGH
CVE-2024-50228
Linux Kernel Linux Shmem Data-Race
Description

Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

INFO

Published Date :

Nov. 9, 2024, 11:15 a.m.

Last Modified :

Nov. 28, 2024, 5:15 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.0
Affected Products

The following products are affected by CVE-2024-50228 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-50228 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-50228 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.

  • CVE Rejected by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 28, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 28, 2024

    Action Type Old Value New Value
    Changed Description In the Linux kernel, the following vulnerability has been resolved: mm: shmem: fix data-race in shmem_getattr() I got the following KCSAN report during syzbot testing: ================================================================== BUG: KCSAN: data-race in generic_fillattr / inode_set_ctime_current write to 0xffff888102eb3260 of 4 bytes by task 6565 on cpu 1: inode_set_ctime_to_ts include/linux/fs.h:1638 [inline] inode_set_ctime_current+0x169/0x1d0 fs/inode.c:2626 shmem_mknod+0x117/0x180 mm/shmem.c:3443 shmem_create+0x34/0x40 mm/shmem.c:3497 lookup_open fs/namei.c:3578 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0xdbc/0x1f00 fs/namei.c:3883 do_filp_open+0xf7/0x200 fs/namei.c:3913 do_sys_openat2+0xab/0x120 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1442 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e read to 0xffff888102eb3260 of 4 bytes by task 3498 on cpu 0: inode_get_ctime_nsec include/linux/fs.h:1623 [inline] inode_get_ctime include/linux/fs.h:1629 [inline] generic_fillattr+0x1dd/0x2f0 fs/stat.c:62 shmem_getattr+0x17b/0x200 mm/shmem.c:1157 vfs_getattr_nosec fs/stat.c:166 [inline] vfs_getattr+0x19b/0x1e0 fs/stat.c:207 vfs_statx_path fs/stat.c:251 [inline] vfs_statx+0x134/0x2f0 fs/stat.c:315 vfs_fstatat+0xec/0x110 fs/stat.c:341 __do_sys_newfstatat fs/stat.c:505 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:499 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:499 x64_sys_call+0x141f/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e value changed: 0x2755ae53 -> 0x27ee44d3 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3498 Comm: udevd Not tainted 6.11.0-rc6-syzkaller-00326-gd1f2d51b711a-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ================================================================== When calling generic_fillattr(), if you don't hold read lock, data-race will occur in inode member variables, which can cause unexpected behavior. Since there is no special protection when shmem_getattr() calls generic_fillattr(), data-race occurs by functions such as shmem_unlink() or shmem_mknod(). This can cause unexpected results, so commenting it out is not enough. Therefore, when calling generic_fillattr() from shmem_getattr(), it is appropriate to protect the inode using inode_lock_shared() and inode_unlock_shared() to prevent data-race. Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.
    Removed CVSS V3.1 NIST: AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Removed CWE NIST: CWE-362
    Removed CPE Configuration 2527387 Config Identifier: 0, OR *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 from (excluding) 5.10.229 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 from (excluding) 5.4.285 *cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 from (excluding) 6.11.7 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 from (excluding) 6.6.60 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 from (excluding) 6.1.116 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 from (excluding) 5.15.171 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.3 from (excluding) 4.19.323
    Removed Reference kernel.org: https://git.kernel.org/stable/c/3d9528484480e8f4979b3a347930ed383be99f89
    Removed Reference kernel.org: https://git.kernel.org/stable/c/7cc30ada84323be19395094d567579536e0d187e
    Removed Reference kernel.org: https://git.kernel.org/stable/c/82cae1e30bd940253593c2d4f16d88343d1358f4
    Removed Reference kernel.org: https://git.kernel.org/stable/c/9fb9703cd43ee20a6de8ccdef991677b7274cec0
    Removed Reference kernel.org: https://git.kernel.org/stable/c/bda1a99a0dd644f31a87d636ac624eeb975cb65a
    Removed Reference kernel.org: https://git.kernel.org/stable/c/d949d1d14fa281ace388b1de978e8f2cd52875cf
    Removed Reference kernel.org: https://git.kernel.org/stable/c/edd1f905050686fdc4cfe233d818469fdf7d5ff8
    Removed Reference kernel.org: https://git.kernel.org/stable/c/ffd56612566bc23877c8f45def2801f3324a222a
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/3d9528484480e8f4979b3a347930ed383be99f89 Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/7cc30ada84323be19395094d567579536e0d187e Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/82cae1e30bd940253593c2d4f16d88343d1358f4 Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/9fb9703cd43ee20a6de8ccdef991677b7274cec0 Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/bda1a99a0dd644f31a87d636ac624eeb975cb65a Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/d949d1d14fa281ace388b1de978e8f2cd52875cf Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/edd1f905050686fdc4cfe233d818469fdf7d5ff8 Types: Patch
    Removed Reference Type kernel.org: https://git.kernel.org/stable/c/ffd56612566bc23877c8f45def2801f3324a222a Types: Patch
  • Initial Analysis by [email protected]

    Nov. 13, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/3d9528484480e8f4979b3a347930ed383be99f89 No Types Assigned https://git.kernel.org/stable/c/3d9528484480e8f4979b3a347930ed383be99f89 Patch
    Changed Reference Type https://git.kernel.org/stable/c/7cc30ada84323be19395094d567579536e0d187e No Types Assigned https://git.kernel.org/stable/c/7cc30ada84323be19395094d567579536e0d187e Patch
    Changed Reference Type https://git.kernel.org/stable/c/82cae1e30bd940253593c2d4f16d88343d1358f4 No Types Assigned https://git.kernel.org/stable/c/82cae1e30bd940253593c2d4f16d88343d1358f4 Patch
    Changed Reference Type https://git.kernel.org/stable/c/9fb9703cd43ee20a6de8ccdef991677b7274cec0 No Types Assigned https://git.kernel.org/stable/c/9fb9703cd43ee20a6de8ccdef991677b7274cec0 Patch
    Changed Reference Type https://git.kernel.org/stable/c/bda1a99a0dd644f31a87d636ac624eeb975cb65a No Types Assigned https://git.kernel.org/stable/c/bda1a99a0dd644f31a87d636ac624eeb975cb65a Patch
    Changed Reference Type https://git.kernel.org/stable/c/d949d1d14fa281ace388b1de978e8f2cd52875cf No Types Assigned https://git.kernel.org/stable/c/d949d1d14fa281ace388b1de978e8f2cd52875cf Patch
    Changed Reference Type https://git.kernel.org/stable/c/edd1f905050686fdc4cfe233d818469fdf7d5ff8 No Types Assigned https://git.kernel.org/stable/c/edd1f905050686fdc4cfe233d818469fdf7d5ff8 Patch
    Changed Reference Type https://git.kernel.org/stable/c/ffd56612566bc23877c8f45def2801f3324a222a No Types Assigned https://git.kernel.org/stable/c/ffd56612566bc23877c8f45def2801f3324a222a Patch
    Added CWE NIST CWE-362
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.3 up to (excluding) 4.19.323 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.285 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.229 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.171 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.116 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.60 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.7 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:*
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 09, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: mm: shmem: fix data-race in shmem_getattr() I got the following KCSAN report during syzbot testing: ================================================================== BUG: KCSAN: data-race in generic_fillattr / inode_set_ctime_current write to 0xffff888102eb3260 of 4 bytes by task 6565 on cpu 1: inode_set_ctime_to_ts include/linux/fs.h:1638 [inline] inode_set_ctime_current+0x169/0x1d0 fs/inode.c:2626 shmem_mknod+0x117/0x180 mm/shmem.c:3443 shmem_create+0x34/0x40 mm/shmem.c:3497 lookup_open fs/namei.c:3578 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0xdbc/0x1f00 fs/namei.c:3883 do_filp_open+0xf7/0x200 fs/namei.c:3913 do_sys_openat2+0xab/0x120 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1442 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e read to 0xffff888102eb3260 of 4 bytes by task 3498 on cpu 0: inode_get_ctime_nsec include/linux/fs.h:1623 [inline] inode_get_ctime include/linux/fs.h:1629 [inline] generic_fillattr+0x1dd/0x2f0 fs/stat.c:62 shmem_getattr+0x17b/0x200 mm/shmem.c:1157 vfs_getattr_nosec fs/stat.c:166 [inline] vfs_getattr+0x19b/0x1e0 fs/stat.c:207 vfs_statx_path fs/stat.c:251 [inline] vfs_statx+0x134/0x2f0 fs/stat.c:315 vfs_fstatat+0xec/0x110 fs/stat.c:341 __do_sys_newfstatat fs/stat.c:505 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:499 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:499 x64_sys_call+0x141f/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x54/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e value changed: 0x2755ae53 -> 0x27ee44d3 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3498 Comm: udevd Not tainted 6.11.0-rc6-syzkaller-00326-gd1f2d51b711a-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ================================================================== When calling generic_fillattr(), if you don't hold read lock, data-race will occur in inode member variables, which can cause unexpected behavior. Since there is no special protection when shmem_getattr() calls generic_fillattr(), data-race occurs by functions such as shmem_unlink() or shmem_mknod(). This can cause unexpected results, so commenting it out is not enough. Therefore, when calling generic_fillattr() from shmem_getattr(), it is appropriate to protect the inode using inode_lock_shared() and inode_unlock_shared() to prevent data-race.
    Added Reference kernel.org https://git.kernel.org/stable/c/9fb9703cd43ee20a6de8ccdef991677b7274cec0 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7cc30ada84323be19395094d567579536e0d187e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/bda1a99a0dd644f31a87d636ac624eeb975cb65a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/3d9528484480e8f4979b3a347930ed383be99f89 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/82cae1e30bd940253593c2d4f16d88343d1358f4 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/edd1f905050686fdc4cfe233d818469fdf7d5ff8 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ffd56612566bc23877c8f45def2801f3324a222a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/d949d1d14fa281ace388b1de978e8f2cd52875cf [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-50228 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-50228 weaknesses.

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