CVE-2022-49329
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
26/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
vduse: Fix NULL pointer dereference on sysfs access<br />
<br />
The control device has no drvdata. So we will get a<br />
NULL pointer dereference when accessing control<br />
device&#39;s msg_timeout attribute via sysfs:<br />
<br />
[ 132.841881][ T3644] BUG: kernel NULL pointer dereference, address: 00000000000000f8<br />
[ 132.850619][ T3644] RIP: 0010:msg_timeout_show (drivers/vdpa/vdpa_user/vduse_dev.c:1271)<br />
[ 132.869447][ T3644] dev_attr_show (drivers/base/core.c:2094)<br />
[ 132.870215][ T3644] sysfs_kf_seq_show (fs/sysfs/file.c:59)<br />
[ 132.871164][ T3644] ? device_remove_bin_file (drivers/base/core.c:2088)<br />
[ 132.872082][ T3644] kernfs_seq_show (fs/kernfs/file.c:164)<br />
[ 132.872838][ T3644] seq_read_iter (fs/seq_file.c:230)<br />
[ 132.873578][ T3644] ? __vmalloc_area_node (mm/vmalloc.c:3041)<br />
[ 132.874532][ T3644] kernfs_fop_read_iter (fs/kernfs/file.c:238)<br />
[ 132.875513][ T3644] __kernel_read (fs/read_write.c:440 (discriminator 1))<br />
[ 132.876319][ T3644] kernel_read (fs/read_write.c:459)<br />
[ 132.877129][ T3644] kernel_read_file (fs/kernel_read_file.c:94)<br />
[ 132.877978][ T3644] kernel_read_file_from_fd (include/linux/file.h:45 fs/kernel_read_file.c:186)<br />
[ 132.879019][ T3644] __do_sys_finit_module (kernel/module.c:4207)<br />
[ 132.879930][ T3644] __ia32_sys_finit_module (kernel/module.c:4189)<br />
[ 132.880930][ T3644] do_int80_syscall_32 (arch/x86/entry/common.c:112 arch/x86/entry/common.c:132)<br />
[ 132.881847][ T3644] entry_INT80_compat (arch/x86/entry/entry_64_compat.S:419)<br />
<br />
To fix it, don&#39;t create the unneeded attribute for<br />
control device anymore.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.15 (including) | 5.15.47 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.17.15 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.18 (including) | 5.18.4 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



