<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>8748</bug_id>
          <alias>CVE-2024-24862</alias>
          <creation_ts>2024-04-12 10:46:07 +0000</creation_ts>
          <short_desc>fix null pointer dereference in pci1xxxx_spi_probe of spi driver</short_desc>
          <delta_ts>2024-04-29 09:36:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 6.6 Dev</product>
          <component>drivers</component>
          <version>6.6.7-1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shiloong">shile.zhang</reporter>
          <assigned_to name="Shiloong">shile.zhang</assigned_to>
          <cc>renyu.zj</cc>
    
    
    <cc>xlpang</cc>
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27262</commentid>
    <comment_count>0</comment_count>
    <who name="Shiloong">shile.zhang</who>
    <bug_when>2024-04-12 10:46:07 +0000</bug_when>
    <thetext>on behalf of 刘怀远 &lt;qq810974084@gmail.com&gt;:
在pci1xxxx_spi_probe函数中，存在一处调用devm_kzalloc函数申请内存，申请时不保证成功，且并未对其返回指针进行检查。而在后文直接或间接对其进行了解引用，从而触发空指针解引用。

已经向upstream提交修复补丁：
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20240411&amp;id=1f886a7bfb3faf4c1021e73f045538008ce7634e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>