{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix __dst_negative_advice() race\n\n__dst_negative_advice() does not enforce proper RCU rules when\nsk->dst_cache must be cleared, leading to possible UAF.\n\nRCU rules are that we must first clear sk->sk_dst_cache,\nthen call dst_release(old_dst).\n\nNote that sk_dst_reset(sk) is implementing this protocol correctly,\nwhile __dst_negative_advice() uses the wrong order.\n\nGiven that ip6_negative_advice() has special logic\nagainst RTF_CACHE, this means each of the three ->negative_advice()\nexisting methods must perform the sk_dst_reset() themselves.\n\nNote the check against NULL dst is centralized in\n__dst_negative_advice(), there is no need to duplicate\nit in various callbacks.\n\nMany thanks to Clement Lecigne for tracking this issue.\n\nThis old bug became visible after the blamed commit, using UDP sockets."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "include/net/dst_ops.h",
                  "include/net/sock.h",
                  "net/ipv4/route.c",
                  "net/ipv6/route.c",
                  "net/xfrm/xfrm_policy.c"
               ],
               "versions": [
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "051c0bde9f04",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "db0082825037",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "2295a7ef5c8c",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "eacb8b195579",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "81dd3c82a456",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "5af198c38712",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "b8af8e6118a6",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a87cb3e48ee8",
                     "lessThan": "92f1655aa2b2",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "include/net/dst_ops.h",
                  "include/net/sock.h",
                  "net/ipv4/route.c",
                  "net/ipv6/route.c",
                  "net/xfrm/xfrm_policy.c"
               ],
               "versions": [
                  {
                     "version": "4.6",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "4.6",
                     "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.94",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.34",
                     "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/051c0bde9f0450a2ec3d62a86d2a0d2fad117f13"
            },
            {
               "url": "https://git.kernel.org/stable/c/db0082825037794c5dba9959c9de13ca34cc5e72"
            },
            {
               "url": "https://git.kernel.org/stable/c/2295a7ef5c8c49241bff769e7826ef2582e532a6"
            },
            {
               "url": "https://git.kernel.org/stable/c/eacb8b195579c174a6d3e12a9690b206eb7f28cf"
            },
            {
               "url": "https://git.kernel.org/stable/c/81dd3c82a456b0015461754be7cb2693991421b4"
            },
            {
               "url": "https://git.kernel.org/stable/c/5af198c387128a9d2ddd620b0f0803564a4d4508"
            },
            {
               "url": "https://git.kernel.org/stable/c/b8af8e6118a6605f0e495a58d591ca94a85a50fc"
            },
            {
               "url": "https://git.kernel.org/stable/c/92f1655aa2b2294d0b49925f3b875a634bd3b59e"
            }
         ],
         "title": "net: fix __dst_negative_advice() race",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-36971",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
