cve-2022-49886
Vulnerability from cvelistv5
Published
2025-05-01 14:10
Modified
2025-05-04 08:47
Severity ?
Summary
x86/tdx: Panic on bad configs that #VE on "private" memory access
Impacted products
LinuxLinux
LinuxLinux
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/coco/tdx/tdx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "895c168c8f78079f21ad50fead7593ffa352f795",
              "status": "affected",
              "version": "9a22bf6debbf5169f750af53c7f86eb4e3cd6712",
              "versionType": "git"
            },
            {
              "lessThan": "373e715e31bf4e0f129befe87613a278fac228d3",
              "status": "affected",
              "version": "9a22bf6debbf5169f750af53c7f86eb4e3cd6712",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/coco/tdx/tdx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.8",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nx86/tdx: Panic on bad configs that #VE on \"private\" memory access\n\nAll normal kernel memory is \"TDX private memory\".  This includes\neverything from kernel stacks to kernel text.  Handling\nexceptions on arbitrary accesses to kernel memory is essentially\nimpossible because they can happen in horribly nasty places like\nkernel entry/exit.  But, TDX hardware can theoretically _deliver_\na virtualization exception (#VE) on any access to private memory.\n\nBut, it\u0027s not as bad as it sounds.  TDX can be configured to never\ndeliver these exceptions on private memory with a \"TD attribute\"\ncalled ATTR_SEPT_VE_DISABLE.  The guest has no way to *set* this\nattribute, but it can check it.\n\nEnsure ATTR_SEPT_VE_DISABLE is set in early boot.  panic() if it\nis unset.  There is no sane way for Linux to run with this\nattribute clear so a panic() is appropriate.\n\nThere\u0027s small window during boot before the check where kernel\nhas an early #VE handler. But the handler is only for port I/O\nand will also panic() as soon as it sees any other #VE, such as\na one generated by a private memory access.\n\n[ dhansen: Rewrite changelog and rebase on new tdx_parse_tdinfo().\n\t   Add Kirill\u0027s tested-by because I made changes since\n\t   he wrote this. ]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:47:48.152Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/895c168c8f78079f21ad50fead7593ffa352f795"
        },
        {
          "url": "https://git.kernel.org/stable/c/373e715e31bf4e0f129befe87613a278fac228d3"
        }
      ],
      "title": "x86/tdx: Panic on bad configs that #VE on \"private\" memory access",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49886",
    "datePublished": "2025-05-01T14:10:31.933Z",
    "dateReserved": "2025-05-01T14:05:17.241Z",
    "dateUpdated": "2025-05-04T08:47:48.152Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49886\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-05-01T15:16:13.590\",\"lastModified\":\"2025-05-02T13:52:51.693\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nx86/tdx: Panic on bad configs that #VE on \\\"private\\\" memory access\\n\\nAll normal kernel memory is \\\"TDX private memory\\\".  This includes\\neverything from kernel stacks to kernel text.  Handling\\nexceptions on arbitrary accesses to kernel memory is essentially\\nimpossible because they can happen in horribly nasty places like\\nkernel entry/exit.  But, TDX hardware can theoretically _deliver_\\na virtualization exception (#VE) on any access to private memory.\\n\\nBut, it\u0027s not as bad as it sounds.  TDX can be configured to never\\ndeliver these exceptions on private memory with a \\\"TD attribute\\\"\\ncalled ATTR_SEPT_VE_DISABLE.  The guest has no way to *set* this\\nattribute, but it can check it.\\n\\nEnsure ATTR_SEPT_VE_DISABLE is set in early boot.  panic() if it\\nis unset.  There is no sane way for Linux to run with this\\nattribute clear so a panic() is appropriate.\\n\\nThere\u0027s small window during boot before the check where kernel\\nhas an early #VE handler. But the handler is only for port I/O\\nand will also panic() as soon as it sees any other #VE, such as\\na one generated by a private memory access.\\n\\n[ dhansen: Rewrite changelog and rebase on new tdx_parse_tdinfo().\\n\\t   Add Kirill\u0027s tested-by because I made changes since\\n\\t   he wrote this. ]\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/tdx: P\u00e1nico en configuraciones incorrectas que generan #VE al acceder a memoria \\\"privada\\\". Toda la memoria normal del kernel es \\\"memoria privada TDX\\\". Esto incluye todo, desde las pilas del kernel hasta el texto del kernel. Gestionar excepciones en accesos arbitrarios a la memoria del kernel es pr\u00e1cticamente imposible, ya que pueden ocurrir en lugares muy peligrosos, como la entrada/salida del kernel. Sin embargo, el hardware TDX, en teor\u00eda, puede generar una excepci\u00f3n de virtualizaci\u00f3n (#VE) en cualquier acceso a memoria privada. Sin embargo, no es tan grave como parece. TDX se puede configurar para que nunca genere estas excepciones en memoria privada con un \\\"atributo TD\\\" llamado ATTR_SEPT_VE_DISABLE. El invitado no tiene forma de *configurar* este atributo, pero puede comprobarlo. Aseg\u00farese de que ATTR_SEPT_VE_DISABLE est\u00e9 configurado en el arranque inicial. Si no est\u00e1 configurado, utilice panic(). No hay una forma sensata de que Linux se ejecute con este atributo sin configurar, por lo que es apropiado usar panic(). Hay una peque\u00f1a ventana durante el arranque antes de la comprobaci\u00f3n donde el kernel tiene un controlador de #VE temprano. Sin embargo, este controlador solo sirve para la E/S de puerto y tambi\u00e9n se pondr\u00e1 en p\u00e1nico() en cuanto detecte cualquier otro #VE, como uno generado por un acceso a memoria privada. [dhansen: Reescribir el registro de cambios y reorganizar con el nuevo tdx_parse_tdinfo(). A\u00f1adir la prueba de Kirill porque hice cambios desde que escribi\u00f3 esto.]\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/373e715e31bf4e0f129befe87613a278fac228d3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/895c168c8f78079f21ad50fead7593ffa352f795\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...
  • 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.