{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes\n\nIn cdv_intel_lvds_get_modes(), the return value of drm_mode_duplicate()\nis assigned to mode, which will lead to a NULL pointer dereference on\nfailure of drm_mode_duplicate(). Add a check to avoid npd."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/gpu/drm/gma500/cdv_intel_lvds.c"
               ],
               "versions": [
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "f392c36cebf4",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "a658ae2173ab",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "b6ac46a00188",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "08f45102c81a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "e74eb5e80894",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "2d209b2f862f",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "977ee4fe895e",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a227d5fd6c4",
                     "lessThan": "cb520c3f366c",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/gpu/drm/gma500/cdv_intel_lvds.c"
               ],
               "versions": [
                  {
                     "version": "3.3",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.3",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.320",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.282",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.224",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.165",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.103",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.44",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10.3",
                     "lessThanOrEqual": "6.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.11",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/f392c36cebf4c1d6997a4cc2c0f205254acef42a"
            },
            {
               "url": "https://git.kernel.org/stable/c/a658ae2173ab74667c009e2550455e6de5b33ddc"
            },
            {
               "url": "https://git.kernel.org/stable/c/b6ac46a00188cde50ffba233e6efb366354a1de5"
            },
            {
               "url": "https://git.kernel.org/stable/c/08f45102c81ad8bc9f85f7a25e9f64e128edb87d"
            },
            {
               "url": "https://git.kernel.org/stable/c/e74eb5e8089427c8c49e0dd5067e5f39ce3a4d56"
            },
            {
               "url": "https://git.kernel.org/stable/c/2d209b2f862f6b8bff549ede541590a8d119da23"
            },
            {
               "url": "https://git.kernel.org/stable/c/977ee4fe895e1729cd36cc26916bbb10084713d6"
            },
            {
               "url": "https://git.kernel.org/stable/c/cb520c3f366c77e8d69e4e2e2781a8ce48d98e79"
            }
         ],
         "title": "drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-42310",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
