CVE-2024-41030 ksmbd: discard write access to the directory open

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel ksmbd module allows remote attackers to cause a system crash via crafted SMB2 open requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-41030?

CVE-2024-41030 is a medium-severity vulnerability in Linux kernel, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: discard write access to the directory open

may_open() does not allow a directory to be opened with the write access. However, some writing flags set by client result in adding write access on server, making ksmbd incompatible with FUSE file system. Simply, let's discard the write access when opening a directory.

list_add corruption. next is NULL. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:26! pc : __list_add_valid+0x88/0xbc lr : __list_add_valid+0x88/0xbc Call trace: __list_add_valid+0x88/0xbc fuse_finish_open+0x11c/0x170 fuse_open_common+0x284/0x5e8 fuse_dir_open+0x14/0x24 do_dentry_open+0x2a4/0x4e0 dentry_open+0x50/0x80 smb2_open+0xbe4/0x15a4 handle_ksmbd_work+0x478/0x5ec process_one_work+0x1b4/0x448 worker_thread+0x25c/0x430 kthread+0x104/0x1d4 ret_from_fork+0x10/0x20

Weakness: CWE-476

Which versions are affected by CVE-2024-41030?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-41030?

Apply the vendor's patch.

Is CVE-2024-41030 being exploited?

There is no known exploitation of CVE-2024-41030 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-41030, DEBIAN-CVE-2024-41030, GHSA-36wr-w868-hx2g, ROOT-OS-UBUNTU-2204-CVE-2024-41030, UBUNTU-CVE-2024-41030.

Is CVE-2024-41030 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free