CVE-2024-26789 (GCVE-0-2024-26789)
Vulnerability from cvelistv5
Published
2024-04-04 08:20
Modified
2026-08-05 11:27
Summary
In the Linux kernel, the following vulnerability has been resolved: crypto: arm64/neonbs - fix out-of-bounds access on short input The bit-sliced implementation of AES-CTR operates on blocks of 128 bytes, and will fall back to the plain NEON version for tail blocks or inputs that are shorter than 128 bytes to begin with. It will call straight into the plain NEON asm helper, which performs all memory accesses in granules of 16 bytes (the size of a NEON register). For this reason, the associated plain NEON glue code will copy inputs shorter than 16 bytes into a temporary buffer, given that this is a rare occurrence and it is not worth the effort to work around this in the asm code. The fallback from the bit-sliced NEON version fails to take this into account, potentially resulting in out-of-bounds accesses. So clone the same workaround, and use a temp buffer for short in/outputs.
Impacted products
Vendor Product Version
Linux Linux Version: fc074e130051015e39245a4241956ff122e2f465
Version: fc074e130051015e39245a4241956ff122e2f465
Version: fc074e130051015e39245a4241956ff122e2f465
Version: fc074e130051015e39245a4241956ff122e2f465
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.1,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "NONE",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "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"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-11-01T14:46:58.156Z",
          "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": "034e2d70b5c7f578200ad09955aeb2aa65d1164a",
              "status": "affected",
              "version": "fc074e130051015e39245a4241956ff122e2f465",
              "versionType": "git"
            },
            {
              "lessThan": "1291d278b5574819a7266568ce4c28bce9438705",
              "status": "affected",
              "version": "fc074e130051015e39245a4241956ff122e2f465",
              "versionType": "git"
            },
            {
              "lessThan": "9e8ecd4908b53941ab6f0f51584ab80c6c6606c4",
              "status": "affected",
              "version": "fc074e130051015e39245a4241956ff122e2f465",
              "versionType": "git"
            },
            {
              "lessThan": "1c0cf6d19690141002889d72622b90fc01562ce4",
              "status": "affected",
              "version": "fc074e130051015e39245a4241956ff122e2f465",
              "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": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.81",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.21",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.81",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.21",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.7.9",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable `ctr(aes)` transform is driven from local syscalls \u2014 the demonstrated and universally available path is an AF_ALG (`algif_skcipher`) socket issuing a 1\u201315 byte encrypt request, plus dm-crypt/IPsec consumers. No unauthenticated network protocol reaches a sub-16-byte CTR call (GCM always prepends a 16-byte tag block, and ESP with rfc3686(ctr(aes)) requires an established SA).\nAC:L - Triggering is fully deterministic and entirely attacker-controlled: bind an AF_ALG skcipher socket to `ctr(aes)`/`ctr-aes-neonbs`, set any key, and submit 1\u201315 bytes; the attacker also chooses the output buffer\u0027s page alignment, which decides whether the OOB access crosses into an adjacent page. No race, no memory-layout condition outside the attacker\u0027s influence, and `CONFIG_CRYPTO_AES_ARM64_BS` is widely enabled on arm64 (including Android GKI and distro kernels).\nPR:L - Only an unprivileged local account is needed \u2014 `AF_ALG` socket creation, bind, `setkey` and send/recv require no capabilities and no user namespace tricks. No root or CAP_* check exists anywhere along the path from `skcipher_recvmsg()` to `ctr_encrypt()`.\nUI:N - The attacking process performs the entire sequence itself via socket syscalls; no victim action, mount, or file open is involved.\nS:U - The out-of-bounds read and write occur in kernel memory and are exploited by a local process against the same kernel security authority; no hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - The asm performs a 16-byte NEON load starting up to 15 bytes before both the source and destination buffers, reading unrelated kernel memory in the adjacent page; combined with the out-of-bounds store this is memory corruption of neighbouring kernel objects that can be leveraged toward information disclosure.\nI:H - `st1 {v5.16b}, [OUT]` writes 16 bytes starting up to 15 bytes before the destination buffer \u2014 an out-of-bounds write into memory the attacker does not own, performed as a non-atomic read-modify-write so concurrent kernel writes to that region are silently clobbered with stale values, at a location the attacker positions via output-buffer alignment.\nA:H - The out-of-bounds 16-byte load/store can hit an unmapped or read-only page \u2014 a KFENCE guard page, a linear-map hole at a memblock boundary, or a read-only linear-map alias under the arm64 default `RODATA_FULL_DEFAULT_ENABLED=y` \u2014 producing a kernel page fault and oops; on KASAN/syzbot builds it reports out-of-bounds access and panics under `panic_on_warn`, and it can be re-triggered at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:27:15.181Z",
        "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-1.2.0"
      }
    }
  },
  "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": "2026-08-05T11:27:15.181Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"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\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T00:14:13.508Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.1, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-26789\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-04-04T15:13:15.619626Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:21.965Z\"}}], \"cna\": {\"title\": \"crypto: arm64/neonbs - fix out-of-bounds access on short input\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The vulnerable `ctr(aes)` transform is driven from local syscalls \\u2014 the demonstrated and universally available path is an AF_ALG (`algif_skcipher`) socket issuing a 1\\u201315 byte encrypt request, plus dm-crypt/IPsec consumers. No unauthenticated network protocol reaches a sub-16-byte CTR call (GCM always prepends a 16-byte tag block, and ESP with rfc3686(ctr(aes)) requires an established SA).\\nAC:L - Triggering is fully deterministic and entirely attacker-controlled: bind an AF_ALG skcipher socket to `ctr(aes)`/`ctr-aes-neonbs`, set any key, and submit 1\\u201315 bytes; the attacker also chooses the output buffer\u0027s page alignment, which decides whether the OOB access crosses into an adjacent page. No race, no memory-layout condition outside the attacker\u0027s influence, and `CONFIG_CRYPTO_AES_ARM64_BS` is widely enabled on arm64 (including Android GKI and distro kernels).\\nPR:L - Only an unprivileged local account is needed \\u2014 `AF_ALG` socket creation, bind, `setkey` and send/recv require no capabilities and no user namespace tricks. No root or CAP_* check exists anywhere along the path from `skcipher_recvmsg()` to `ctr_encrypt()`.\\nUI:N - The attacking process performs the entire sequence itself via socket syscalls; no victim action, mount, or file open is involved.\\nS:U - The out-of-bounds read and write occur in kernel memory and are exploited by a local process against the same kernel security authority; no hypervisor, IOMMU, or sandbox boundary is crossed.\\nC:H - The asm performs a 16-byte NEON load starting up to 15 bytes before both the source and destination buffers, reading unrelated kernel memory in the adjacent page; combined with the out-of-bounds store this is memory corruption of neighbouring kernel objects that can be leveraged toward information disclosure.\\nI:H - `st1 {v5.16b}, [OUT]` writes 16 bytes starting up to 15 bytes before the destination buffer \\u2014 an out-of-bounds write into memory the attacker does not own, performed as a non-atomic read-modify-write so concurrent kernel writes to that region are silently clobbered with stale values, at a location the attacker positions via output-buffer alignment.\\nA:H - The out-of-bounds 16-byte load/store can hit an unmapped or read-only page \\u2014 a KFENCE guard page, a linear-map hole at a memblock boundary, or a read-only linear-map alias under the arm64 default `RODATA_FULL_DEFAULT_ENABLED=y` \\u2014 producing a kernel page fault and oops; on KASAN/syzbot builds it reports out-of-bounds access and panics under `panic_on_warn`, and it can be re-triggered at will.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"fc074e130051015e39245a4241956ff122e2f465\", \"lessThan\": \"034e2d70b5c7f578200ad09955aeb2aa65d1164a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fc074e130051015e39245a4241956ff122e2f465\", \"lessThan\": \"1291d278b5574819a7266568ce4c28bce9438705\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fc074e130051015e39245a4241956ff122e2f465\", \"lessThan\": \"9e8ecd4908b53941ab6f0f51584ab80c6c6606c4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fc074e130051015e39245a4241956ff122e2f465\", \"lessThan\": \"1c0cf6d19690141002889d72622b90fc01562ce4\", \"versionType\": \"git\"}], \"programFiles\": [\"arch/arm64/crypto/aes-neonbs-glue.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.81\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.21\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.7.9\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"arch/arm64/crypto/aes-neonbs-glue.c\"], \"defaultStatus\": \"affected\"}], \"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\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"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.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.81\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.21\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.7.9\", \"versionStartIncluding\": \"5.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8\", \"versionStartIncluding\": \"5.18\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:27:15.181Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-26789\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:27:15.181Z\", \"dateReserved\": \"2024-02-19T14:20:24.178Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-04-04T08:20:21.077Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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…