{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: sr: fix invalid unregister error path\n\nThe error path of seg6_init() is wrong in case CONFIG_IPV6_SEG6_LWTUNNEL\nis not defined. In that case if seg6_hmac_init() fails, the\ngenl_unregister_family() isn't called.\n\nThis issue exist since commit 46738b1317e1 (\"ipv6: sr: add option to control\nlwtunnel support\"), and commit 5559cea2d5aa (\"ipv6: sr: fix possible\nuse-after-free and null-ptr-deref\") replaced unregister_pernet_subsys()\nwith genl_unregister_family() in this error path."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/ipv6/seg6.c"
               ],
               "versions": [
                  {
                     "version": "46738b1317e1",
                     "lessThan": "10610575a3ac",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "646cd236c55e",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "00e6335329f2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "1a63730fb315",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "e77a3ec7ada8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "3398a40dccb8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "85a70ff1e572",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "c04d6a914e89",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "46738b1317e1",
                     "lessThan": "160e9d275218",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/ipv6/seg6.c"
               ],
               "versions": [
                  {
                     "version": "4.10",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "4.10",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.316",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.278",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.219",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.161",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.93",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.33",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.12",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9.3",
                     "lessThanOrEqual": "6.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/10610575a3ac2a702bf5c57aa931beaf847949c7"
            },
            {
               "url": "https://git.kernel.org/stable/c/646cd236c55e2cb5f146fc41bbe4034c4af5b2a4"
            },
            {
               "url": "https://git.kernel.org/stable/c/00e6335329f23ac6cf3105931691674e28bc598c"
            },
            {
               "url": "https://git.kernel.org/stable/c/1a63730fb315bb1bab97edd69ff58ad45e04bb01"
            },
            {
               "url": "https://git.kernel.org/stable/c/e77a3ec7ada84543e75722a1283785a6544de925"
            },
            {
               "url": "https://git.kernel.org/stable/c/3398a40dccb88d3a7eef378247a023a78472db66"
            },
            {
               "url": "https://git.kernel.org/stable/c/85a70ff1e572160f1eeb096ed48d09a1c9d4d89a"
            },
            {
               "url": "https://git.kernel.org/stable/c/c04d6a914e890ccea4a9d11233009a2ee7978bf4"
            },
            {
               "url": "https://git.kernel.org/stable/c/160e9d2752181fcf18c662e74022d77d3164cd45"
            }
         ],
         "title": "ipv6: sr: fix invalid unregister error path",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-38612",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
