{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-40022",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40022",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-10-24T12:24:57.875Z",
    "updatedAt": "2026-10-15T01:08:50.599Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "crypto: af_alg - Fix incorrect boolean values in af_alg_ctx",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: af_alg - Fix incorrect boolean values in af_alg_ctx\n\nCommit 1b34cbbf4f01 (\"crypto: af_alg - Disallow concurrent writes in\naf_alg_sendmsg\") changed some fields from bool to 1-bit bitfields of\ntype u32.\n\nHowever, some assignments to these fields, specifically 'more' and\n'merge', assign values greater than 1.  These relied on C's implicit\nconversion to bool, such that zero becomes false and nonzero becomes\ntrue.\n\nWith a 1-bit bitfields of type u32 instead, mod 2 of the value is taken\ninstead, resulting in 0 being assigned in some cases when 1 was intended.\n\nFix this by restoring the bool type.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0f28c4adbc4a97437874c9b669fd7958a8c6d6ce",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3a21698ace915a445bce2d0dcfc84b6d2199baf7"
            },
            {
              "version": "e4c1ec11132ec466f7362a95f36a506ce4dc08c9",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d382d6daf0184490f366562469a5673f65ee2662"
            },
            {
              "version": "1f323a48e9b5ebfe6dc7d130fdf5c3c0e92a07c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "54506c6335690f4ef1b9f154e34f5a604c72c1ed"
            },
            {
              "version": "7c4491b5644e3a3708f3dbd7591be0a570135b84",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8703940bd30b5ad94408d28d7192db2491cd3592"
            },
            {
              "version": "9aee87da5572b3a14075f501752e209801160d3d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "316b090c2fee964c307a634fecc7df269664b158"
            },
            {
              "version": "45bcf60fe49b37daab1acee57b27211ad1574042",
              "status": "affected",
              "versionType": "git",
              "lessThan": "fbe96bd25423e61273d8831e995260b429d850b6"
            },
            {
              "version": "1b34cbbf4f011a121ef7b2d7d6e6920a036d5285",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "6.1.154",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.155"
            },
            {
              "version": "6.6.108",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.109"
            },
            {
              "version": "6.12.49",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.12.50"
            },
            {
              "version": "6.16.9",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.16.10"
            }
          ]
        }
      ]
    }
  }
}