CVE-2024-26620
Vulnerability from cvelistv5
Published
2024-02-29 15:52
Modified
2024-11-05 09:12
Severity ?
Summary
s390/vfio-ap: always filter entire AP matrix
Impacted products
LinuxLinux
LinuxLinux
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-26620",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-06-21T16:17:50.706857Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-21T16:18:01.425Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T00:07:19.626Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/d6b8d034b576f406af920a7bee81606c027b24c6"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/c69d821197611678533fb3eb784fc823b921349a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/cdd134d56138302976685e6c7bc4755450b3880e"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/s390/crypto/vfio_ap_ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d6b8d034b576",
              "status": "affected",
              "version": "48cae940c31d",
              "versionType": "git"
            },
            {
              "lessThan": "c69d82119761",
              "status": "affected",
              "version": "48cae940c31d",
              "versionType": "git"
            },
            {
              "lessThan": "cdd134d56138",
              "status": "affected",
              "version": "48cae940c31d",
              "versionType": "git"
            },
            {
              "lessThan": "850fb7fa8c68",
              "status": "affected",
              "version": "48cae940c31d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/s390/crypto/vfio_ap_ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.0"
            },
            {
              "lessThan": "6.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390/vfio-ap: always filter entire AP matrix\n\nThe vfio_ap_mdev_filter_matrix function is called whenever a new adapter or\ndomain is assigned to the mdev. The purpose of the function is to update\nthe guest\u0027s AP configuration by filtering the matrix of adapters and\ndomains assigned to the mdev. When an adapter or domain is assigned, only\nthe APQNs associated with the APID of the new adapter or APQI of the new\ndomain are inspected. If an APQN does not reference a queue device bound to\nthe vfio_ap device driver, then it\u0027s APID will be filtered from the mdev\u0027s\nmatrix when updating the guest\u0027s AP configuration.\n\nInspecting only the APID of the new adapter or APQI of the new domain will\nresult in passing AP queues through to a guest that are not bound to the\nvfio_ap device driver under certain circumstances. Consider the following:\n\nguest\u0027s AP configuration (all also assigned to the mdev\u0027s matrix):\n14.0004\n14.0005\n14.0006\n16.0004\n16.0005\n16.0006\n\nunassign domain 4\nunbind queue 16.0005\nassign domain 4\n\nWhen domain 4 is re-assigned, since only domain 4 will be inspected, the\nAPQNs that will be examined will be:\n14.0004\n16.0004\n\nSince both of those APQNs reference queue devices that are bound to the\nvfio_ap device driver, nothing will get filtered from the mdev\u0027s matrix\nwhen updating the guest\u0027s AP configuration. Consequently, queue 16.0005\nwill get passed through despite not being bound to the driver. This\nviolates the linux device model requirement that a guest shall only be\ngiven access to devices bound to the device driver facilitating their\npass-through.\n\nTo resolve this problem, every adapter and domain assigned to the mdev will\nbe inspected when filtering the mdev\u0027s matrix."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-11-05T09:12:43.404Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d6b8d034b576f406af920a7bee81606c027b24c6"
        },
        {
          "url": "https://git.kernel.org/stable/c/c69d821197611678533fb3eb784fc823b921349a"
        },
        {
          "url": "https://git.kernel.org/stable/c/cdd134d56138302976685e6c7bc4755450b3880e"
        },
        {
          "url": "https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11"
        }
      ],
      "title": "s390/vfio-ap: always filter entire AP matrix",
      "x_generator": {
        "engine": "bippy-9e1c9544281a"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-26620",
    "datePublished": "2024-02-29T15:52:21.743Z",
    "dateReserved": "2024-02-19T14:20:24.132Z",
    "dateUpdated": "2024-11-05T09:12:43.404Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-26620\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-03-11T18:15:19.613\",\"lastModified\":\"2024-03-12T12:40:13.500\",\"vulnStatus\":\"Awaiting Analysis\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ns390/vfio-ap: always filter entire AP matrix\\n\\nThe vfio_ap_mdev_filter_matrix function is called whenever a new adapter or\\ndomain is assigned to the mdev. The purpose of the function is to update\\nthe guest\u0027s AP configuration by filtering the matrix of adapters and\\ndomains assigned to the mdev. When an adapter or domain is assigned, only\\nthe APQNs associated with the APID of the new adapter or APQI of the new\\ndomain are inspected. If an APQN does not reference a queue device bound to\\nthe vfio_ap device driver, then it\u0027s APID will be filtered from the mdev\u0027s\\nmatrix when updating the guest\u0027s AP configuration.\\n\\nInspecting only the APID of the new adapter or APQI of the new domain will\\nresult in passing AP queues through to a guest that are not bound to the\\nvfio_ap device driver under certain circumstances. Consider the following:\\n\\nguest\u0027s AP configuration (all also assigned to the mdev\u0027s matrix):\\n14.0004\\n14.0005\\n14.0006\\n16.0004\\n16.0005\\n16.0006\\n\\nunassign domain 4\\nunbind queue 16.0005\\nassign domain 4\\n\\nWhen domain 4 is re-assigned, since only domain 4 will be inspected, the\\nAPQNs that will be examined will be:\\n14.0004\\n16.0004\\n\\nSince both of those APQNs reference queue devices that are bound to the\\nvfio_ap device driver, nothing will get filtered from the mdev\u0027s matrix\\nwhen updating the guest\u0027s AP configuration. Consequently, queue 16.0005\\nwill get passed through despite not being bound to the driver. This\\nviolates the linux device model requirement that a guest shall only be\\ngiven access to devices bound to the device driver facilitating their\\npass-through.\\n\\nTo resolve this problem, every adapter and domain assigned to the mdev will\\nbe inspected when filtering the mdev\u0027s matrix.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: s390/vfio-ap: filtra siempre toda la matriz AP La funci\u00f3n vfio_ap_mdev_filter_matrix se llama cada vez que se asigna un nuevo adaptador o dominio al mdev. El prop\u00f3sito de la funci\u00f3n es actualizar la configuraci\u00f3n del AP del invitado filtrando la matriz de adaptadores y dominios asignados al mdev. Cuando se asigna un adaptador o dominio, solo se inspeccionan los APQN asociados con el APID del nuevo adaptador o APQI del nuevo dominio. Si un APQN no hace referencia a un dispositivo de cola vinculado al controlador de dispositivo vfio_ap, entonces su APID se filtrar\u00e1 de la matriz de mdev al actualizar la configuraci\u00f3n de AP del invitado. Inspeccionar solo el APID del nuevo adaptador o APQI del nuevo dominio dar\u00e1 como resultado que se pasen colas de AP a un invitado que no est\u00e1 vinculado al controlador de dispositivo vfio_ap en determinadas circunstancias. Considere lo siguiente: configuraci\u00f3n de AP del invitado (todas tambi\u00e9n asignadas a la matriz de mdev): 14.0004 14.0005 14.0006 16.0004 16.0005 16.0006 desasignar dominio 4 desvincular cola 16.0005 asignar dominio 4 Cuando se reasigna el dominio 4, dado que solo se inspeccionar\u00e1 el dominio 4, los APQN que se examinar\u00e1 ser\u00e1: 14.0004 16.0004 Dado que ambos APQN hacen referencia a dispositivos de cola que est\u00e1n vinculados al controlador de dispositivo vfio_ap, no se filtrar\u00e1 nada de la matriz de mdev al actualizar la configuraci\u00f3n de AP del invitado. En consecuencia, la cola 16.0005 pasar\u00e1 a pesar de no estar vinculada al conductor. Esto viola el requisito del modelo de dispositivo Linux de que a un invitado solo se le dar\u00e1 acceso a los dispositivos vinculados al controlador del dispositivo que facilita su paso. Para resolver este problema, cada adaptador y dominio asignado al mdev se inspeccionar\u00e1 al filtrar la matriz del mdev.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c69d821197611678533fb3eb784fc823b921349a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/cdd134d56138302976685e6c7bc4755450b3880e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d6b8d034b576f406af920a7bee81606c027b24c6\",\"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.