漏洞信息
                                
                                    
                                        
                                        # xfrm: 释放时置空ipcomp_scratches
N/A
                                        
                                    
                                 
                                提示
                                
                                    尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
                                    
                                    神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
                                    
神龙祝您一切顺利!
                                
                            
                            
                         
                    
                
                    
                    
                        
                            
                            
                                
    漏洞标题
    
        
            xfrm: Update ipcomp_scratches with NULL when freed
        
        
    
                                
    漏洞描述信息
    
        
            In the Linux kernel, the following vulnerability has been resolved:
xfrm: Update ipcomp_scratches with NULL when freed
Currently if ipcomp_alloc_scratches() fails to allocate memory
ipcomp_scratches holds obsolete address. So when we try to free the
percpu scratches using ipcomp_free_scratches() it tries to vfree non
existent vm area. Described below:
static void * __percpu *ipcomp_alloc_scratches(void)
{
        ...
        scratches = alloc_percpu(void *);
        if (!scratches)
                return NULL;
ipcomp_scratches does not know about this allocation failure.
Therefore holding the old obsolete address.
        ...
}
So when we free,
static void ipcomp_free_scratches(void)
{
        ...
        scratches = ipcomp_scratches;
Assigning obsolete address from ipcomp_scratches
        if (!scratches)
                return;
        for_each_possible_cpu(i)
               vfree(*per_cpu_ptr(scratches, i));
Trying to free non existent page, causing warning: trying to vfree
existent vm area.
        ...
}
Fix this breakage by updating ipcomp_scrtches with NULL when scratches
is freed
        
        
    
                                
    CVSS信息
    
        
            N/A
        
        
    
                                
    漏洞类别
    
        
            N/A
        
        
    
                            
                         
                    
                
                    
                    
                        
                            
                            
                                
    漏洞标题
    
        
            Linux kernel 安全漏洞
        
        
    
                                
    漏洞描述信息
    
        
            Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未在释放后更新ipcomp_scratches为NULL,可能导致空指针取消引用。
        
        
    
                                
    CVSS信息
    
        
            N/A
        
        
    
                                
    漏洞类别
    
        
            其他