CVE-2024-26620
Vulnerability from cvelistv5
Published
2024-02-29 15:52
Modified
2024-12-19 08:43
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: always filter entire AP matrix The vfio_ap_mdev_filter_matrix function is called whenever a new adapter or domain is assigned to the mdev. The purpose of the function is to update the guest's AP configuration by filtering the matrix of adapters and domains assigned to the mdev. When an adapter or domain is assigned, only the APQNs associated with the APID of the new adapter or APQI of the new domain are inspected. If an APQN does not reference a queue device bound to the vfio_ap device driver, then it's APID will be filtered from the mdev's matrix when updating the guest's AP configuration. Inspecting only the APID of the new adapter or APQI of the new domain will result in passing AP queues through to a guest that are not bound to the vfio_ap device driver under certain circumstances. Consider the following: guest's AP configuration (all also assigned to the mdev's matrix): 14.0004 14.0005 14.0006 16.0004 16.0005 16.0006 unassign domain 4 unbind queue 16.0005 assign domain 4 When domain 4 is re-assigned, since only domain 4 will be inspected, the APQNs that will be examined will be: 14.0004 16.0004 Since both of those APQNs reference queue devices that are bound to the vfio_ap device driver, nothing will get filtered from the mdev's matrix when updating the guest's AP configuration. Consequently, queue 16.0005 will get passed through despite not being bound to the driver. This violates the linux device model requirement that a guest shall only be given access to devices bound to the device driver facilitating their pass-through. To resolve this problem, every adapter and domain assigned to the mdev will be inspected when filtering the mdev's matrix.
Impacted products
Vendor Product Version
Linux Linux Version: 6.0
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": "d6b8d034b576f406af920a7bee81606c027b24c6",
              "status": "affected",
              "version": "48cae940c31d2407d860d87c41d5f9871c0521db",
              "versionType": "git"
            },
            {
              "lessThan": "c69d821197611678533fb3eb784fc823b921349a",
              "status": "affected",
              "version": "48cae940c31d2407d860d87c41d5f9871c0521db",
              "versionType": "git"
            },
            {
              "lessThan": "cdd134d56138302976685e6c7bc4755450b3880e",
              "status": "affected",
              "version": "48cae940c31d2407d860d87c41d5f9871c0521db",
              "versionType": "git"
            },
            {
              "lessThan": "850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11",
              "status": "affected",
              "version": "48cae940c31d2407d860d87c41d5f9871c0521db",
              "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-12-19T08:43:40.612Z",
        "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-5f407fcff5a0"
      }
    }
  },
  "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-12-19T08:43:40.612Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-26620\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-03-11T18:15:19.613\",\"lastModified\":\"2024-11-21T09:02:42.407\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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\"},{\"url\":\"https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/c69d821197611678533fb3eb784fc823b921349a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/cdd134d56138302976685e6c7bc4755450b3880e\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/d6b8d034b576f406af920a7bee81606c027b24c6\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}"
  }
}


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.