{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e870456d8e7c8d57c059ea479b5aadbb55ff4c3a"
            },
            {
              "fixed": "2b3d265a3fc85067d31b5afb1d361fd3572ceccc"
            },
            {
              "fixed": "9e2ad142742c81f1c2f47211994fe8d259d6c2c0"
            },
            {
              "fixed": "aee0549e284b65763e8df946b85271eaf5884f70"
            },
            {
              "fixed": "53a4a201240155d486df7c62e0a26bac37d5e28b"
            },
            {
              "fixed": "b4526c0966888aafecead8956910de7318969d48"
            },
            {
              "fixed": "ca4d514d32a9c4c293d742f7091c49d4d016cd11"
            },
            {
              "fixed": "6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc"
            },
            {
              "fixed": "2f90facc7b94934653eb7ebfadcc25d503b89196"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.14.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138879.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_skcipher - rewind rounded output bytes\n\naf_alg_get_rsgl() advances the receive iterator by the unrounded RX\nscatterlist length.  For a continuing skcipher request,\n_skcipher_recvmsg() then rounds its local length down to a whole chunksize\nwithout restoring the iterator.\n\nA later chunk starts after bytes which the provider never wrote, while the\nsyscall returns only the processed length.  When copy_splice_read()\nsupplies non-zeroed pages and publishes that return as a dense prefix, the\ngap exposes stale bytes from a previous page lifetime.\n\nWith unprivileged xts(aes), a 31-byte MSG_MORE request followed by one\nfinal byte advances a 47-byte destination while returning 32 bytes.  A\nhardened v7.2-rc5 image retained all 15 seeded stale bytes in 4,829 of\n4,829 records.  With init_on_alloc enabled, all 72,345 gap bytes observed\nwere zero.\n\nRewind the iterator by the tail excluded during rounding, before rejecting\na zero processed length.  The crypto request uses only the rounded length;\naf_alg_free_resources() releases the entire RX list before another receive\niteration.\n\nThe fixed target-like kernel returned byte-identical dense 48-byte output\nin 4,771 of 4,771 rounds.  The unmodified kernel returned the vulnerable\n32-byte short record in 2,409 of 2,409 rounds.",
  "id": "CVE-2026-138879",
  "modified": "2026-12-01T20:45:54.205400894Z",
  "published": "2026-11-30T13:25:50.443Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2b3d265a3fc85067d31b5afb1d361fd3572ceccc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2f90facc7b94934653eb7ebfadcc25d503b89196"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/53a4a201240155d486df7c62e0a26bac37d5e28b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9e2ad142742c81f1c2f47211994fe8d259d6c2c0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aee0549e284b65763e8df946b85271eaf5884f70"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b4526c0966888aafecead8956910de7318969d48"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ca4d514d32a9c4c293d742f7091c49d4d016cd11"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138879.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138879"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "crypto: algif_skcipher - rewind rounded output bytes"
}