CVE-2022-50142 (GCVE-0-2022-50142)
Vulnerability from cvelistv5
Published
2025-06-18 11:03
Modified
2025-06-18 11:03
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: intel_th: msu: Fix vmalloced buffers After commit f5ff79fddf0e ("dma-mapping: remove CONFIG_DMA_REMAP") there's a chance of DMA buffer getting allocated via vmalloc(), which messes up the mmapping code: > RIP: msc_mmap_fault [intel_th_msu] > Call Trace: > <TASK> > __do_fault > do_fault ... Fix this by accounting for vmalloc possibility.
Impacted products
Vendor Product Version
Linux Linux Version: ba39bd8306057fb343dfb75d93a76d824b625236
Version: ba39bd8306057fb343dfb75d93a76d824b625236
Version: ba39bd8306057fb343dfb75d93a76d824b625236
Version: ba39bd8306057fb343dfb75d93a76d824b625236
Version: ba39bd8306057fb343dfb75d93a76d824b625236
Version: ba39bd8306057fb343dfb75d93a76d824b625236
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwtracing/intel_th/msu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b5d924cb4c7b952eaa61622f14427723a78137a3",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            },
            {
              "lessThan": "6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            },
            {
              "lessThan": "566887bad7ff2297d6b3f9659c702ba075f3d62d",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            },
            {
              "lessThan": "0ed72c6bc632cbf8d979ac60f982ff84b7bb610a",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            },
            {
              "lessThan": "4914c50670b6a531e2cb17cd984cc565b4681312",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            },
            {
              "lessThan": "ac12ad3ccf6d386e64a9d6a890595a2509d24edd",
              "status": "affected",
              "version": "ba39bd8306057fb343dfb75d93a76d824b625236",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwtracing/intel_th/msu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.211",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.137",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.211",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.137",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.61",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.18",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.2",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nintel_th: msu: Fix vmalloced buffers\n\nAfter commit f5ff79fddf0e (\"dma-mapping: remove CONFIG_DMA_REMAP\") there\u0027s\na chance of DMA buffer getting allocated via vmalloc(), which messes up\nthe mmapping code:\n\n\u003e RIP: msc_mmap_fault [intel_th_msu]\n\u003e Call Trace:\n\u003e  \u003cTASK\u003e\n\u003e  __do_fault\n\u003e  do_fault\n...\n\nFix this by accounting for vmalloc possibility."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T11:03:04.333Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b5d924cb4c7b952eaa61622f14427723a78137a3"
        },
        {
          "url": "https://git.kernel.org/stable/c/6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828"
        },
        {
          "url": "https://git.kernel.org/stable/c/566887bad7ff2297d6b3f9659c702ba075f3d62d"
        },
        {
          "url": "https://git.kernel.org/stable/c/0ed72c6bc632cbf8d979ac60f982ff84b7bb610a"
        },
        {
          "url": "https://git.kernel.org/stable/c/4914c50670b6a531e2cb17cd984cc565b4681312"
        },
        {
          "url": "https://git.kernel.org/stable/c/ac12ad3ccf6d386e64a9d6a890595a2509d24edd"
        }
      ],
      "title": "intel_th: msu: Fix vmalloced buffers",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50142",
    "datePublished": "2025-06-18T11:03:04.333Z",
    "dateReserved": "2025-06-18T10:57:27.423Z",
    "dateUpdated": "2025-06-18T11:03:04.333Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50142\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:44.187\",\"lastModified\":\"2025-06-18T13:47:40.833\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nintel_th: msu: Fix vmalloced buffers\\n\\nAfter commit f5ff79fddf0e (\\\"dma-mapping: remove CONFIG_DMA_REMAP\\\") there\u0027s\\na chance of DMA buffer getting allocated via vmalloc(), which messes up\\nthe mmapping code:\\n\\n\u003e RIP: msc_mmap_fault [intel_th_msu]\\n\u003e Call Trace:\\n\u003e  \u003cTASK\u003e\\n\u003e  __do_fault\\n\u003e  do_fault\\n...\\n\\nFix this by accounting for vmalloc possibility.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: intel_th: msu: Reparar b\u00faferes vmalloced Despu\u00e9s de el commit f5ff79fddf0e (\\\"dma-mapping: remove CONFIG_DMA_REMAP\\\") existe la posibilidad de que el buffer DMA se asigne a trav\u00e9s de vmalloc(), lo que arruina el c\u00f3digo mmapping: \u0026gt; RIP: msc_mmap_fault [intel_th_msu] \u0026gt; Rastreo de llamada: \u0026gt;  \u0026gt; __do_fault \u0026gt; do_fault ... Solucione esto teniendo en cuenta la posibilidad de vmalloc.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0ed72c6bc632cbf8d979ac60f982ff84b7bb610a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4914c50670b6a531e2cb17cd984cc565b4681312\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/566887bad7ff2297d6b3f9659c702ba075f3d62d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ac12ad3ccf6d386e64a9d6a890595a2509d24edd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b5d924cb4c7b952eaa61622f14427723a78137a3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…