{
   "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 memleak in seg6_hmac_init_algo\n\nseg6_hmac_init_algo returns without cleaning up the previous allocations\nif one fails, so it's going to leak all that memory and the crypto tfms.\n\nUpdate seg6_hmac_exit to only free the memory when allocated, so we can\nreuse the code directly."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/ipv6/seg6_hmac.c"
               ],
               "versions": [
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "afd5730969ae",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "4a3fcf53725b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "daf341e0a231",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "61d31ac85b45",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "599a56542150",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "0e44d6cbe8de",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "f6a99ef4e056",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "bf355b8d2c30",
                     "lessThan": "efb9f4f19f8e",
                     "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_hmac.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.9.4",
                     "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/afd5730969aec960a2fee4e5ee839a6014643976"
            },
            {
               "url": "https://git.kernel.org/stable/c/4a3fcf53725b70010d1cf869a2ba549fed6b8fb3"
            },
            {
               "url": "https://git.kernel.org/stable/c/daf341e0a2318b813427d5a78788c86f4a7f02be"
            },
            {
               "url": "https://git.kernel.org/stable/c/61d31ac85b4572d11f8071855c0ccb4f32d76c0c"
            },
            {
               "url": "https://git.kernel.org/stable/c/599a5654215092ac22bfc453f4fd3959c55ea821"
            },
            {
               "url": "https://git.kernel.org/stable/c/0e44d6cbe8de983470c3d2f978649783384fdcb6"
            },
            {
               "url": "https://git.kernel.org/stable/c/f6a99ef4e056c20a138a95cc51332b2b96c8f383"
            },
            {
               "url": "https://git.kernel.org/stable/c/efb9f4f19f8e37fde43dfecebc80292d179f56c6"
            }
         ],
         "title": "ipv6: sr: fix memleak in seg6_hmac_init_algo",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-39489",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
