CVE-2023-53494 (GCVE-0-2023-53494)
Vulnerability from cvelistv5
Published
2025-10-01 11:45
Modified
2026-08-05 09:14
Summary
In the Linux kernel, the following vulnerability has been resolved: crypto: xts - Handle EBUSY correctly As it is xts only handles the special return value of EINPROGRESS, which means that in all other cases it will free data related to the request. However, as the caller of xts may specify MAY_BACKLOG, we also need to expect EBUSY and treat it in the same way. Otherwise backlogged requests will trigger a use-after-free.
Impacted products
Vendor Product Version
Linux Linux Version: 8083b1bf8163e7ae7d8c90f221106d96450b8aa8
Version: 8083b1bf8163e7ae7d8c90f221106d96450b8aa8
Version: 8083b1bf8163e7ae7d8c90f221106d96450b8aa8
Version: 8083b1bf8163e7ae7d8c90f221106d96450b8aa8
Version: 8083b1bf8163e7ae7d8c90f221106d96450b8aa8
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "crypto/xts.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "92a07ba4f0af2cccdc2aa5ee32679c9c9714db90",
              "status": "affected",
              "version": "8083b1bf8163e7ae7d8c90f221106d96450b8aa8",
              "versionType": "git"
            },
            {
              "lessThan": "912eb10b65646ffd222256c78a1c566a3dac177d",
              "status": "affected",
              "version": "8083b1bf8163e7ae7d8c90f221106d96450b8aa8",
              "versionType": "git"
            },
            {
              "lessThan": "57c3e1d63b63dc0841d41df729297cd7c1c35808",
              "status": "affected",
              "version": "8083b1bf8163e7ae7d8c90f221106d96450b8aa8",
              "versionType": "git"
            },
            {
              "lessThan": "d5870848879291700fe6c5257dcb48aadd10425c",
              "status": "affected",
              "version": "8083b1bf8163e7ae7d8c90f221106d96450b8aa8",
              "versionType": "git"
            },
            {
              "lessThan": "51c082514c2dedf2711c99d93c196cc4eedceb40",
              "status": "affected",
              "version": "8083b1bf8163e7ae7d8c90f221106d96450b8aa8",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "crypto/xts.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.4"
            },
            {
              "lessThan": "5.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.173",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.99",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.173",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.99",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.16",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.3",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: xts - Handle EBUSY correctly\n\nAs it is xts only handles the special return value of EINPROGRESS,\nwhich means that in all other cases it will free data related to the\nrequest.\n\nHowever, as the caller of xts may specify MAY_BACKLOG, we also need\nto expect EBUSY and treat it in the same way.  Otherwise backlogged\nrequests will trigger a use-after-free."
        }
      ],
      "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 only practical trigger for the XTS ciphertext-stealing path with CRYPTO_TFM_REQ_MAY_BACKLOG is the local AF_ALG socket interface (crypto/algif_skcipher.c), reached via socket()/bind()/sendmsg()/recvmsg(); no in-kernel network consumer uses XTS with unaligned lengths.\nAC:L - The attacker controls every precondition: they choose the async XTS instantiation by name, choose a cryptlen that is not a multiple of 16 to force the CTS path, and saturate the child driver\u0027s backlog queue themselves (crypto_engine default depth is 10, cryptd is per-CPU and can be filled with pinned threads) so the tail request reliably returns -EBUSY.\nPR:L - Opening an AF_ALG socket and binding an arbitrary skcipher template name requires no capabilities, only an unprivileged local account on a kernel with CONFIG_CRYPTO_USER_API_SKCIPHER (standard on distro and Android kernels).\nUI:N - The attacker performs the entire sequence from their own process; no victim action or cooperation is needed.\nS:U - The use-after-free corrupts kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - After the request is freed, xts_cts_done() dereferences rctx-\u003etail \u2014 a scatterlist pointer read from reclaimed, attacker-sprayable memory \u2014 and copies 16 bytes out of it, yielding a controlled kernel-memory read that can be used to disclose arbitrary kernel data.\nI:H - The same forged scatterlist is written back through scatterwalk_map_and_copy(), giving a controlled kernel write, and skcipher_request_complete() then calls req-\u003ebase.complete \u2014 a function pointer taken from freed memory \u2014 enabling control-flow hijack and full privilege escalation.\nA:H - Even without successful exploitation the double completion and use-after-free corrupt the crypto request and its owner\u0027s socket state, producing KASAN splats, oopses, or a kernel panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:14:26.466Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/92a07ba4f0af2cccdc2aa5ee32679c9c9714db90"
        },
        {
          "url": "https://git.kernel.org/stable/c/912eb10b65646ffd222256c78a1c566a3dac177d"
        },
        {
          "url": "https://git.kernel.org/stable/c/57c3e1d63b63dc0841d41df729297cd7c1c35808"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5870848879291700fe6c5257dcb48aadd10425c"
        },
        {
          "url": "https://git.kernel.org/stable/c/51c082514c2dedf2711c99d93c196cc4eedceb40"
        }
      ],
      "title": "crypto: xts - Handle EBUSY correctly",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53494",
    "datePublished": "2025-10-01T11:45:45.773Z",
    "dateReserved": "2025-10-01T11:39:39.403Z",
    "dateUpdated": "2026-08-05T09:14:26.466Z",
    "state": "PUBLISHED"
  },
  "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…