<?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-032016</VulinfoID>
    <VulinfoData>
      <Title>Linux&#12398;Linux Kernel&#12395;&#12362;&#12369;&#12427;&#22659;&#30028;&#22806;&#35501;&#12415;&#21462;&#12426;&#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;&#35299;&#27770;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;net: af_key: IPComp&#29366;&#24907;&#12398;&#12383;&#12417;&#12395;alg_key_len&#12434;&#21021;&#26399;&#21270;&#12375;&#12394;&#12363;&#12387;&#12383;&#21839;&#38988;&#12391;&#12377;&#12290;pfkey_msg2xfrm_state()&#12399;&#12289;IPComp (SADB_X_SATYPE_IPCOMP) &#12398;&#22580;&#21512;&#12434;&#20966;&#29702;&#12377;&#12427;&#38555;&#12395;&#12289;x-&#65310;calg&#12434;&#21106;&#12426;&#24403;&#12390;&#12390;&#12450;&#12523;&#12468;&#12522;&#12474;&#12512;&#21517;&#12384;&#12369;&#12434;&#12467;&#12500;&#12540;&#12375;&#12390;&#12356;&#12414;&#12377;&#12290;```x-&#65310;calg = kmalloc_obj(*x-&#65310;calg);if (!x-&#65310;calg) { err = -ENOMEM; goto out;}strcpy(x-&#65310;calg-&#65310;alg_name, a-&#65310;name);x-&#65310;props.calgo = sa-&#65310;sadb_sa_encrypt;```&#21516;&#12376;&#38306;&#25968;&#20869;&#12398;&#35469;&#35388;(x-&#65310;aalg)&#12362;&#12424;&#12403;&#26263;&#21495;&#21270;(x-&#65310;ealg)&#12398;&#12502;&#12521;&#12531;&#12481;&#12392;&#12399;&#30064;&#12394;&#12426;&#12289;&#22311;&#32302;&#12502;&#12521;&#12531;&#12481;&#12399;calg-&#65310;alg_key_len&#12434;&#21021;&#26399;&#21270;&#12375;&#12390;&#12356;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#12290;IPComp&#12399;&#12461;&#12540;&#12434;&#25345;&#12383;&#12378;&#12289;&#21106;&#12426;&#24403;&#12390;&#12427;&#12398;&#12399;sizeof(struct xfrm_algo)&#12398;&#12415;&#65288;&#12461;&#12540;&#38936;&#22495;&#12394;&#12375;&#65289;&#12391;&#12354;&#12427;&#12383;&#12417;&#12289;&#12371;&#12398;&#12501;&#12451;&#12540;&#12523;&#12489;&#12399;&#21021;&#26399;&#21270;&#12373;&#12428;&#12390;&#12356;&#12394;&#12356;&#12473;&#12521;&#12502;&#12487;&#12540;&#12479;&#12398;&#12414;&#12414;&#27531;&#12387;&#12390;&#12356;&#12414;&#12375;&#12383;&#12290;calg-&#65310;alg_key_len&#12399;&#12289;XFRM_MSG_MIGRATE&#20013;&#12395;IPComp&#29366;&#24907;&#12398;&#12463;&#12525;&#12540;&#12531;&#20316;&#25104;&#26178;&#12395;xfrm_algo_clone()&#12391;&#38263;&#12373;&#12392;&#12375;&#12390;&#29992;&#12356;&#12425;&#12428;&#12414;&#12377;&#12290;```xfrm_state_migrate()  xfrm_state_clone_and_setup()    x-&#65310;calg = xfrm_algo_clone(orig-&#65310;calg);      kmemdup(orig, xfrm_alg_len(orig));```&#12371;&#12371;&#12391;xfrm_alg_len()&#12399; sizeof(*alg) + (alg_key_len + 7) / 8 &#12434;&#36820;&#12375;&#12414;&#12377;&#12290;&#21021;&#26399;&#21270;&#12373;&#12428;&#12390;&#12356;&#12394;&#12356;&#65288;&#12468;&#12511;&#20516;&#12398;&#65289;alg_key_len&#12364;&#38750;&#12476;&#12525;&#12398;&#22580;&#21512;&#12289;kmemdup()&#12399;68&#12496;&#12452;&#12488;&#12398;calg&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12398;&#26411;&#23614;&#12434;&#36234;&#12360;&#12390;&#35501;&#12415;&#36796;&#12415;&#12414;&#12377;&#12290;PF_KEY&#32076;&#30001;&#12391;IPComp SA&#12434;&#36861;&#21152;&#12375;&#12289;&#12381;&#12428;&#12434;&#31227;&#34892;&#12377;&#12427;&#12392;(net-next, KASAN, init_on_alloc=0&#29872;&#22659;&#19979;&#12391;)&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#12496;&#12464;&#12364;&#30330;&#29983;&#12375;&#12414;&#12377;&#12290;```BUG: KASAN: slab-out-of-bounds in kmemdup_noprof+0x44/0x60Read of size 4164 at addr ff11000025a74980 by task diag2/9287CPU: 3 UID: 0 PID: 9287 Comm: diag2 7.1.0-rc6-g903db046d557 #1Call Trace:  &#65308;TASK&#65310;  dump_stack_lvl+0x10e/0x1f0  print_report+0xf7/0x600  kasan_report+0xe4/0x120  kasan_check_range+0x105/0x1b0  __asan_memcpy+0x23/0x60  kmemdup_noprof+0x44/0x60  xfrm_state_migrate+0x70a/0x1da0  xfrm_migrate+0x753/0x18a0  xfrm_do_migrate+0xb47/0xf10  xfrm_user_rcv_msg+0x411/0xb50  netlink_rcv_skb+0x158/0x420  xfrm_netlink_rcv+0x71/0x90  netlink_unicast+0x584/0x850  netlink_sendmsg+0x8b0/0xdc0  ____sys_sendmsg+0x9f7/0xb90  ___sys_sendmsg+0x134/0x1d0  __sys_sendmsg+0x16d/0x220  do_syscall_64+0x116/0x7d0  entry_SYSCALL_64_after_hwframe+0x77/0x7f&#65308;/TASK&#65310;&#12450;&#12525;&#12465;&#12540;&#12488;&#20803;&#12479;&#12473;&#12463;9287:  kasan_save_stack+0x33/0x60  kasan_save_track+0x14/0x30  __kasan_kmalloc+0xaa/0xb0  pfkey_add+0x2652/0x2ea0  pfkey_process+0x6d0/0x830  pfkey_sendmsg+0x42c/0x850  __sys_sendto+0x461/0x4b0  __x64_sys_sendto+0xe0/0x1c0  do_syscall_64+0x116/0x7d0  entry_SYSCALL_64_after_hwframe+0x77/0x7f```&#21839;&#38988;&#12398;&#12450;&#12489;&#12524;&#12473;&#12399;&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;ff11000025a74980&#12395;&#23646;&#12375;&#12289;&#12371;&#12428;&#12399;&#12469;&#12452;&#12474;96&#12398;kmalloc-96&#12461;&#12515;&#12483;&#12471;&#12517;&#12398;&#12418;&#12398;&#12391;&#12377;&#12290;&#21839;&#38988;&#12398;&#12450;&#12489;&#12524;&#12473;&#12399;&#21106;&#12426;&#24403;&#12390;&#12425;&#12428;&#12383;68&#12496;&#12452;&#12488;&#38936;&#22495;[ff11000025a74980, ff11000025a749c4)&#12398;&#20808;&#38957;0&#12496;&#12452;&#12488;&#12398;&#20301;&#32622;&#12395;&#12354;&#12426;&#12414;&#12377;&#12290;&#26410;&#21021;&#26399;&#21270;&#12398;&#20516;&#12395;&#12424;&#12387;&#12390;&#12399;&#12289;&#21516;&#12376;&#12501;&#12451;&#12540;&#12523;&#12489;&#12364;&#36942;&#21104;&#12394;kmemdup()&#12398;&#21106;&#12426;&#24403;&#12390;&#12434;&#35201;&#27714;&#12375;&#12289;&#31227;&#34892;&#12463;&#12525;&#12540;&#12531;&#12434;&#22833;&#25943;&#12373;&#12379;&#12427;&#12371;&#12392;&#12418;&#12354;&#12426;&#12414;&#12377;&#12290;XFRM&#12398;netlink&#32076;&#36335;&#12395;&#12399;&#24433;&#38911;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12290;verify_one_alg()&#38306;&#25968;&#12399;xfrm_alg_len()&#12424;&#12426;&#30701;&#12356;XFRMA_ALG_COMP&#23646;&#24615;&#12434;&#25298;&#21542;&#12377;&#12427;&#12383;&#12417;&#12289;XFRM_MSG_NEWSA&#32076;&#30001;&#12391;&#36861;&#21152;&#12373;&#12428;&#12383;calg&#12399;&#24120;&#12395;&#33258;&#24049;&#25972;&#21512;&#24615;&#12364;&#12354;&#12426;&#12414;&#12377;&#12290;&#12371;&#12428;&#12425;&#12434;&#36367;&#12414;&#12360;&#12289;calg-&#65310;alg_key_len&#12434;0&#12391;&#21021;&#26399;&#21270;&#12375;&#12289;aalg&#12362;&#12424;&#12403;ealg&#12398;&#12502;&#12521;&#12531;&#12481;&#12395;&#21512;&#12431;&#12379;&#12414;&#12375;&#12383;&#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-032016.html</URL>
        </RelatedItem>
        <RelatedItem relationtype="alternate" origin="other">
          <Name>Common Vulnerabilities and Exposures (CVE)</Name>
          <VulinfoID>CVE-2026-64436</VulinfoID>
          <URL>https://www.cve.org/CVERecord?id=CVE-2026-64436</URL>
        </RelatedItem>
        <RelatedItem relationtype="alternate" origin="other">
          <Name>National Vulnerability Database (NVD)</Name>
          <VulinfoID>CVE-2026-64436</VulinfoID>
          <URL>https://nvd.nist.gov/vuln/detail/CVE-2026-64436</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>JVNDB</Name>
          <VulinfoID>CWE-125</VulinfoID>
          <Title>&#22659;&#30028;&#22806;&#35501;&#12415;&#21462;&#12426;</Title>
          <URL>https://cwe.mitre.org/data/definitions/125.html</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/3f63d1752d90c0e28be931a48ab5d89bc97d637d)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/3f63d1752d90c0e28be931a48ab5d89bc97d637d</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/58e82fc3dedb57b1432292504415b224fd2d6acb)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/58e82fc3dedb57b1432292504415b224fd2d6acb</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/01b9115b55018123ef2449ac4951f89147a8428e)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/01b9115b55018123ef2449ac4951f89147a8428e</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/cea34abc94b0a81e3a8b5cfb41cf45af37c2c67e)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/cea34abc94b0a81e3a8b5cfb41cf45af37c2c67e</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/d129c3177d7b1138fd5066fcc63a698b3ba415b0)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/d129c3177d7b1138fd5066fcc63a698b3ba415b0</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/e8417353cbd078d10531ba3928e609c84ab09e6b)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/e8417353cbd078d10531ba3928e609c84ab09e6b</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/273c06b81d2e902b21acc801ae18c8276c8a9b69)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/273c06b81d2e902b21acc801ae18c8276c8a9b69</URL>
        </RelatedItem>
        <RelatedItem relationtype="reference" origin="other">
          <Name>&#38306;&#36899;&#25991;&#26360;</Name>
          <VulinfoID>net: af_key: initialize alg_key_len for IPComp states - kernel/git/stable/linux.git - Linux kernel stable tree (https://git.kernel.org/stable/c/6de2a650917bedaaefd65b17cede83c5e2c1dedd)</VulinfoID>
          <URL>https://git.kernel.org/stable/c/6de2a650917bedaaefd65b17cede83c5e2c1dedd</URL>
        </RelatedItem>
      </Related>
      <DateFirstPublished>2026-09-04T17:48:32+09:00</DateFirstPublished>
      <DateLastUpdated>2026-09-04T17:48:32+09:00</DateLastUpdated>
    </VulinfoData>
  </Vulinfo>
</VrdaData>
