cve-2024-26789
Vulnerability from cvelistv5
Published
2024-04-04 08:20
Modified
2024-08-02 00:14
Severity
Summary
crypto: arm64/neonbs - fix out-of-bounds access on short input
Impacted products
VendorProduct
LinuxLinux
LinuxLinux
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-26789",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-04-04T15:13:15.619626Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:48:43.322Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T00:14:13.508Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/034e2d70b5c7f578200ad09955aeb2aa65d1164a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1291d278b5574819a7266568ce4c28bce9438705"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9e8ecd4908b53941ab6f0f51584ab80c6c6606c4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1c0cf6d19690141002889d72622b90fc01562ce4"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/arm64/crypto/aes-neonbs-glue.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "034e2d70b5c7",
              "status": "affected",
              "version": "fc074e130051",
              "versionType": "git"
            },
            {
              "lessThan": "1291d278b557",
              "status": "affected",
              "version": "fc074e130051",
              "versionType": "git"
            },
            {
              "lessThan": "9e8ecd4908b5",
              "status": "affected",
              "version": "fc074e130051",
              "versionType": "git"
            },
            {
              "lessThan": "1c0cf6d19690",
              "status": "affected",
              "version": "fc074e130051",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/arm64/crypto/aes-neonbs-glue.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "custom"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.81",
              "versionType": "custom"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.21",
              "versionType": "custom"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.9",
              "versionType": "custom"
            },
            {
              "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\ncrypto: arm64/neonbs - fix out-of-bounds access on short input\n\nThe bit-sliced implementation of AES-CTR operates on blocks of 128\nbytes, and will fall back to the plain NEON version for tail blocks or\ninputs that are shorter than 128 bytes to begin with.\n\nIt will call straight into the plain NEON asm helper, which performs all\nmemory accesses in granules of 16 bytes (the size of a NEON register).\nFor this reason, the associated plain NEON glue code will copy inputs\nshorter than 16 bytes into a temporary buffer, given that this is a rare\noccurrence and it is not worth the effort to work around this in the asm\ncode.\n\nThe fallback from the bit-sliced NEON version fails to take this into\naccount, potentially resulting in out-of-bounds accesses. So clone the\nsame workaround, and use a temp buffer for short in/outputs."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-05-29T05:22:45.625Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/034e2d70b5c7f578200ad09955aeb2aa65d1164a"
        },
        {
          "url": "https://git.kernel.org/stable/c/1291d278b5574819a7266568ce4c28bce9438705"
        },
        {
          "url": "https://git.kernel.org/stable/c/9e8ecd4908b53941ab6f0f51584ab80c6c6606c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/1c0cf6d19690141002889d72622b90fc01562ce4"
        }
      ],
      "title": "crypto: arm64/neonbs - fix out-of-bounds access on short input",
      "x_generator": {
        "engine": "bippy-a5840b7849dd"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-26789",
    "datePublished": "2024-04-04T08:20:21.077Z",
    "dateReserved": "2024-02-19T14:20:24.178Z",
    "dateUpdated": "2024-08-02T00:14:13.508Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-26789\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-04-04T09:15:08.400\",\"lastModified\":\"2024-04-04T12:48:41.700\",\"vulnStatus\":\"Awaiting Analysis\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: arm64/neonbs - fix out-of-bounds access on short input\\n\\nThe bit-sliced implementation of AES-CTR operates on blocks of 128\\nbytes, and will fall back to the plain NEON version for tail blocks or\\ninputs that are shorter than 128 bytes to begin with.\\n\\nIt will call straight into the plain NEON asm helper, which performs all\\nmemory accesses in granules of 16 bytes (the size of a NEON register).\\nFor this reason, the associated plain NEON glue code will copy inputs\\nshorter than 16 bytes into a temporary buffer, given that this is a rare\\noccurrence and it is not worth the effort to work around this in the asm\\ncode.\\n\\nThe fallback from the bit-sliced NEON version fails to take this into\\naccount, potentially resulting in out-of-bounds accesses. So clone the\\nsame workaround, and use a temp buffer for short in/outputs.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: arm64/neonbs: corrige el acceso fuera de los l\u00edmites en entradas cortas. La implementaci\u00f3n de bits de AES-CTR opera en bloques de 128 bytes y recurrir\u00e1 al Versi\u00f3n NEON simple para bloques finales o entradas que, para empezar, tienen menos de 128 bytes. Llamar\u00e1 directamente al asistente simple NEON asm, que realiza todos los accesos a la memoria en gr\u00e1nulos de 16 bytes (el tama\u00f1o de un registro NEON). Por esta raz\u00f3n, el c\u00f3digo de pegamento NEON simple asociado copiar\u00e1 las entradas de menos de 16 bytes en un b\u00fafer temporal, dado que esto es algo poco com\u00fan y no vale la pena el esfuerzo de solucionarlo en el c\u00f3digo ASM. El respaldo de la versi\u00f3n NEON dividida en bits no tiene esto en cuenta, lo que podr\u00eda provocar accesos fuera de los l\u00edmites. As\u00ed que clone la misma soluci\u00f3n y use un b\u00fafer temporal para entradas/salidas cortas.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/034e2d70b5c7f578200ad09955aeb2aa65d1164a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1291d278b5574819a7266568ce4c28bce9438705\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1c0cf6d19690141002889d72622b90fc01562ce4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9e8ecd4908b53941ab6f0f51584ab80c6c6606c4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...