漏洞信息
                                
                                    
                                        
                                        # DRM 驱动 null-ptr-deref 漏洞
N/A
                                        
                                    
                                 
                                提示
                                
                                    尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
                                    
                                    神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
                                    
神龙祝您一切顺利!
                                
                            
                            
                         
                    
                
                    
                    
                        
                            
                            
                                
    漏洞标题
    
        
            drm: Fix potential null-ptr-deref due to drmm_mode_config_init()
        
        
    
                                
    漏洞描述信息
    
        
            In the Linux kernel, the following vulnerability has been resolved:
drm: Fix potential null-ptr-deref due to drmm_mode_config_init()
drmm_mode_config_init() will call drm_mode_create_standard_properties()
and won't check the ret value. When drm_mode_create_standard_properties()
failed due to alloc, property will be a NULL pointer and may causes the
null-ptr-deref. Fix the null-ptr-deref by adding the ret value check.
Found null-ptr-deref while testing insert module bochs:
general protection fault, probably for non-canonical address
    0xdffffc000000000c: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
CPU: 3 PID: 249 Comm: modprobe Not tainted 6.1.0-rc1+ #364
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014
RIP: 0010:drm_object_attach_property+0x73/0x3c0 [drm]
Call Trace:
 <TASK>
 __drm_connector_init+0xb6c/0x1100 [drm]
 bochs_pci_probe.cold.11+0x4cb/0x7fe [bochs]
 pci_device_probe+0x17d/0x340
 really_probe+0x1db/0x5d0
 __driver_probe_device+0x1e7/0x250
 driver_probe_device+0x4a/0x120
 __driver_attach+0xcd/0x2c0
 bus_for_each_dev+0x11a/0x1b0
 bus_add_driver+0x3d7/0x500
 driver_register+0x18e/0x320
 do_one_initcall+0xc4/0x3e0
 do_init_module+0x1b4/0x630
 load_module+0x5dca/0x7230
 __do_sys_finit_module+0x100/0x170
 do_syscall_64+0x3f/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff65af9f839
        
        
    
                                
    CVSS信息
    
        
            N/A
        
        
    
                                
    漏洞类别
    
        
            N/A
        
        
    
                            
                         
                    
                
                    
                    
                        
                            
                            
                                
    漏洞标题
    
        
            Linux kernel 安全漏洞
        
        
    
                                
    漏洞描述信息
    
        
            Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未检查drmm_mode_config_init返回值,可能导致空指针取消引用。
        
        
    
                                
    CVSS信息
    
        
            N/A
        
        
    
                                
    漏洞类别
    
        
            其他