<?xml version="1.0" encoding="UTF-8"?>
<VrdaData refvuldefversion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vrda.jpcert.or.jp" xsi:schemaLocation="http://vrda.jpcert.or.jp/feed/xsd/vrda_data.xsd">
  <VrdaDataProvider>
    <Name>JVN iPedia</Name>
    <URL>http://jvndb.jvn.jp</URL>
  </VrdaDataProvider>
  <VrdaDataSourceType>Advisory</VrdaDataSourceType>
  <Vulinfo revisionno="1" lang="ja" invalidated="false">
    <VulinfoID>JVNDB-2026-032015</VulinfoID>
    <VulinfoData>
      <Title>Linux&#12398;Linux Kernel&#12395;&#12362;&#12369;&#12427;&#35299;&#25918;&#28168;&#12415;&#12513;&#12514;&#12522;&#12398;&#20351;&#29992;&#12395;&#38306;&#12377;&#12427;&#33030;&#24369;&#24615;</Title>
      <VulinfoDescription>
        <Overview>Linux&#12459;&#12540;&#12493;&#12523;&#12395;&#12362;&#12356;&#12390;&#12289;&#20197;&#19979;&#12398;&#33030;&#24369;&#24615;&#12364;&#20462;&#27491;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;ksmbd&#12395;&#12362;&#12369;&#12427;SMB2_CLOSE&#12398;&#24460;&#12395;SMB2_CANCEL&#12364;&#30330;&#29983;&#12375;&#12383;&#38555;&#12398;&#36933;&#24310;&#12373;&#12428;&#12383;file_lock&#12398;use-after-free&#12398;&#21839;&#38988;&#12391;&#12377;&#12290;&#12467;&#12511;&#12483;&#12488;f580d27e8928&#65288;&#12479;&#12452;&#12488;&#12523;&#65306;&#12300;ksmbd: &#20108;&#37325;SMB2_CANCEL&#26178;&#12398;&#36933;&#24310;&#12373;&#12428;&#12383;file_lock&#12398;use-after-free&#12434;&#20462;&#27491;&#12301;&#65289;&#12391;&#12399;&#12289;smb2_cancel()&#12364;&#29366;&#24907;&#12364;KSMBD_WORK_CANCELLED&#12398;&#20316;&#26989;&#12434;&#12473;&#12461;&#12483;&#12503;&#12377;&#12427;&#12424;&#12358;&#12395;&#22793;&#26356;&#12373;&#12428;&#12289;cancel_fn&#12364;&#20108;&#24230;&#21628;&#12400;&#12428;&#12394;&#12356;&#12424;&#12358;&#12395;&#12375;&#12414;&#12375;&#12383;&#12290;&#12375;&#12363;&#12375;&#12289;KSMBD_WORK&#12399;3&#12388;&#12398;&#29366;&#24907;&#65288;ACTIVE&#12289;CANCELLED&#12289;CLOSED&#65289;&#12434;&#25345;&#12387;&#12390;&#12362;&#12426;&#12289;CLOSED&#12398;&#22580;&#21512;&#12418;&#12501;&#12449;&#12452;&#12523;&#12525;&#12483;&#12463;&#12434;&#35299;&#25918;&#12377;&#12427;&#20966;&#29702;&#12395;&#21040;&#36948;&#12375;&#12414;&#12377;&#12290;SMB2_CLOSE&#12364;&#12525;&#12483;&#12463;&#12495;&#12531;&#12489;&#12523;&#12395;&#23550;&#12375;&#12390;&#34892;&#12431;&#12428;&#12427;&#12392;&#12289;set_close_state_blocked_works()&#12364;&#36933;&#24310;&#20316;&#26989;&#12398;&#29366;&#24907;&#12434;KSMBD_WORK_CLOSED&#12395;&#35373;&#23450;&#12375;&#12289;smb2_lock()&#12398;&#12527;&#12540;&#12459;&#12540;&#12434;&#36215;&#12371;&#12375;&#12414;&#12377;&#12290;&#12527;&#12540;&#12459;&#12540;&#12399;&#38750;ACTIVE&#12398;&#29366;&#24907;&#12391;&#26089;&#26399;&#12395;&#32066;&#20102;&#12375;&#12289;locks_free_lock()&#12391;file_lock&#12434;&#35299;&#25918;&#12375;&#12414;&#12377;&#12290;&#12381;&#12375;&#12390;&#29366;&#24907;&#12364;KSMBD_WORK_CANCELLED&#12391;&#12399;&#12394;&#12356;&#12383;&#12417;&#12289;STATUS_RANGE_NOT_LOCKED&#12398;&#20998;&#23696;&#12434;&#21462;&#12426;&#12289;&#12300;goto out2&#12301;&#12391;&#32066;&#20102;&#12375;&#12414;&#12377;&#12290;&#12371;&#12398;&#20998;&#23696;&#12399;&#12461;&#12515;&#12531;&#12475;&#12523;&#12373;&#12428;&#12383;&#22580;&#21512;&#12392;&#21516;&#27096;&#12395;release_async_work()&#12434;&#12473;&#12461;&#12483;&#12503;&#12375;&#12414;&#12377;&#12290;&#12371;&#12398;&#12383;&#12417;&#12289;&#20316;&#26989;&#12399;conn-&#65310;async_requests&#12395;&#27531;&#12426;&#12289;&#35299;&#25918;&#12373;&#12428;&#12383;file_lock&#12434;&#25351;&#12377;&#26377;&#21177;&#12394;cancel_fn = smb2_remove_blocked_lock&#12364;&#35373;&#23450;&#12373;&#12428;&#12383;&#12414;&#12414;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;&#12381;&#12398;&#24460;&#12289;&#21516;&#12376;AsyncId&#12395;&#23550;&#12377;&#12427;SMB2_CANCEL&#12399;KSMBD_WORK_CANCELLED&#12398;&#29366;&#24907;&#12398;&#12415;&#12434;&#12460;&#12540;&#12489;&#12375;&#12390;&#12356;&#12414;&#12377;&#65288;&#29366;&#24907;&#12399;KSMBD_WORK_CLOSED&#12398;&#12383;&#12417;&#36890;&#36942;&#12375;&#12414;&#12377;&#65289;&#12290;&#12381;&#12398;&#12383;&#12417;&#12289;smb2_cancel()&#12399;&#35299;&#25918;&#28168;&#12415;&#12398;file_lock&#12395;&#23550;&#12375;&#12390;&#20877;&#12403;cancel_fn&#12434;&#21628;&#12403;&#20986;&#12375;&#12289;SMB2_CLOSE&#12395;&#12424;&#12387;&#12390;&#20462;&#27491;&#12373;&#12428;&#12383;&#12398;&#12392;&#21516;&#12376;use-after-free&#12364;&#30330;&#29983;&#12375;&#12414;&#12377;&#12290;  &#21839;&#38988;&#12398;&#30330;&#29983;&#20363;&#12399;&#20197;&#19979;&#12398;&#36890;&#12426;&#12391;&#12377;&#12290;BUG: KASAN: slab-use-after-free in __locks_delete_block    __locks_delete_block    locks_delete_block    ksmbd_vfs_posix_lock_unblock    smb2_remove_blocked_lock    smb2_cancel                 &#65308;- 2&#22238;&#30446;&#12398;SMB2_CANCEL&#12391;cancel_fn&#12364;&#30330;&#28779;    handle_ksmbd_work  &#21106;&#12426;&#24403;&#12390;&#20803;&#12399; locks_alloc_lock &#65308;- smb2_lock &#12391;&#12354;&#12426;&#12289;&#35299;&#25918;&#20803;&#12399; locks_free_lock  &#65308;- smb2_lock&#65288;&#38750;ACTIVE&#12398;&#26089;&#26399;&#32066;&#20102;&#65289;&#12391;&#12377;&#12290;&#23550;&#35937;&#12399; file_lock_cache&#65288;&#12469;&#12452;&#12474;192&#65289;&#12391;&#12377;&#12290;&#12371;&#12398;&#21839;&#38988;&#12399;f580d27e8928&#12434;&#21547;&#12416;mainline 7.1-rc7&#12391;&#12289;KASAN&#12434;&#26377;&#21177;&#12395;&#12375;&#12383;&#35469;&#35388;&#28168;&#12415;SMB&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12395;&#12390;&#20877;&#29694;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;&#20108;&#37325;&#12398;SMB2_CANCEL&#21046;&#24481;&#12399;&#12377;&#12391;&#12395;&#12381;&#12398;&#12459;&#12540;&#12493;&#12523;&#12391;&#12399;&#28961;&#21177;&#21270;&#12373;&#12428;&#12390;&#12362;&#12426;&#12289;&#21839;&#38988;&#12398;&#21407;&#22240;&#12399;CLOSE&#12488;&#12522;&#12460;&#12540;&#12395;&#12354;&#12426;&#12414;&#12377;&#12290;cancel_fn&#12364;&#36215;&#21205;&#12391;&#12365;&#12427;&#12398;&#12399;ACTIVE&#29366;&#24907;&#12398;&#36933;&#24310;&#20316;&#26989;&#12398;&#12415;&#12391;&#12354;&#12426;&#12289;&#32066;&#31471;&#29366;&#24907;&#12391;&#12354;&#12427;CANCELLED&#12362;&#12424;&#12403;CLOSED&#12399;smb2_lock()&#12398;&#26089;&#26399;&#32066;&#20102;&#12391;file_lock&#12434;&#35299;&#25918;&#12375;&#12289;release_async_work()&#12434;&#12473;&#12461;&#12483;&#12503;&#12375;&#12414;&#12377;&#12290;&#12375;&#12383;&#12364;&#12387;&#12390;&#12289;&#38750;ACTIVE&#12398;&#20316;&#26989;&#12399;KSMBD_WORK_ACTIVE&#12391;&#12460;&#12540;&#12489;&#12375;&#12289;&#12473;&#12461;&#12483;&#12503;&#12377;&#12427;&#24517;&#35201;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;</Overview>
      </VulinfoDescription>
      <Affected>
        <AffectedItem affectedstatus="vulnerable">
          <Lapt>cpe:/o:linux:linux_kernel</Lapt>
        </AffectedItem>
      </Affected>
      <FactAnalysis>
      </FactAnalysis>
      <Related>
        <RelatedItem relationtype="self" origin="jvnipedia">
          <URL>https://jvndb.jvn.jp/ja/contents/2026/JVNDB-2026-032015.html</URL>
        </RelatedItem>
        <RelatedItem relationtype="alternate" origin="other">
          <Name>Common Vulnerabilities and Exposures (CVE)</Name>
          <VulinfoID>CVE-2026-64437</VulinfoID>
          <URL>https://www.cve.org/CVERecord?id=CVE-2026-64437</URL>
        </RelatedItem>
        <RelatedItem relationtype="alternate" origin="other">
          <Name>National Vulnerability Database (NVD)</Name>
          <VulinfoID>CVE-2026-64437</VulinfoID>
          <URL>https://nvd.nist.gov/vuln/detail/CVE-2026-64437</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>JVNDB</Name>
          <VulinfoID>CWE-416</VulinfoID>
          <Title>&#35299;&#25918;&#28168;&#12415;&#12513;&#12514;&#12522;&#12398;&#20351;&#29992;</Title>
          <URL>https://cwe.mitre.org/data/definitions/416.html</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/b8e274e69ab09222c7a552c7c0c1eef9ce627fc1)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/b8e274e69ab09222c7a552c7c0c1eef9ce627fc1</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/94083db751930b1540ddff2b54d4677549c57f81)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/94083db751930b1540ddff2b54d4677549c57f81</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/a796ba4e61d5e14e07b79a359faac69f8f9b22a3)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/a796ba4e61d5e14e07b79a359faac69f8f9b22a3</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/10f293a07f9e10e988b0ae44e2e99c631f5a68e0)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/10f293a07f9e10e988b0ae44e2e99c631f5a68e0</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/ddb9239828336b36d8a3ef5943fdffb2f55b6508)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/ddb9239828336b36d8a3ef5943fdffb2f55b6508</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>ksmbd: fix use-after-free of a deferred file_lock on SMB2_CLOSE then SMB2_CANCEL - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/12c36c99655f325befe50c26842f7deca414c381)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/12c36c99655f325befe50c26842f7deca414c381</URL>
        </RelatedItem>
      </Related>
      <DateFirstPublished>2026-09-04T17:48:28+09:00</DateFirstPublished>
      <DateLastUpdated>2026-09-04T17:48:28+09:00</DateLastUpdated>
    </VulinfoData>
  </Vulinfo>
</VrdaData>
