{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4dd893d832cf4da5409e1fecea9c4f6452a93f2b"
            },
            {
              "fixed": "bcb5330153a89af3170a18fb887f3b37305c2cbd"
            },
            {
              "fixed": "666a39fcb5c9bcb600877480b121a91f59f3744e"
            },
            {
              "fixed": "f1f23cb28ae75284453d3947fb97d66b7fb85d6b"
            },
            {
              "fixed": "054901c3a5c0c5be4ac4f5889a1f31133701fb2e"
            },
            {
              "fixed": "9fe2f9b04681b2a1e3b516395ec3631967c77114"
            },
            {
              "fixed": "02c8f665755b1f43a82b333f04e7f7c52cce9865"
            },
            {
              "fixed": "c4b9b5e0cac400c13d02ea71b44525d68170e7bc"
            },
            {
              "fixed": "1acb4fd2d011c4bd6cc961095ae17361c71ff61a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.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.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "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/99xxx/CVE-2026-99850.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Explicitly require FMODE_READ to retrieve hashes\n\nThe comment in fsverity_ioctl_read_metadata(), which justifies not\nchecking for FMODE_READ, doesn't consider that the nonstandard access\nmode 3 (ioctl-only) exists.\n\nOpening an ioctl-only fd generally requires read (and write) permission.\nHowever, there are gaps with certain LSMs: an ioctl-only fd requests\nread (and write) permission via security_inode_permission, but not\nsecurity_file_open.  With certain LSMs relying on the latter, such as\nLandlock and AppArmor, an ioctl-only fd can be opened without the LSM\ngranting read (and write) permission.\n\nSince FS_IOC_READ_VERITY_METADATA returns hashes of file contents\nblocks, it should require read permission.  This also applies to\nFS_IOC_MEASURE_VERITY, which returns a hash for the whole file.\n\nMeanwhile, ioctl-only fds are a rarely-used feature, not known to be\nused with either ioctl.\n\nTherefore, just disallow these ioctls on ioctl-only file descriptors,\nsimilar to what was already done with FS_IOC_ENABLE_VERITY.\n\nMore specifically, explicitly check for FMODE_READ.  This also covers\nwrite-only fds to non-verity files which otherwise would have failed\nwith ENODATA.  This change in error code for write-only fds should be\nfine too, as these ioctls cannot be usefully used with write-only fds\nanyway, but it's worth noting as another technicality.",
  "id": "CVE-2026-99850",
  "modified": "2026-11-30T14:45:57.331078616Z",
  "published": "2026-11-30T13:17:38.613Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/02c8f665755b1f43a82b333f04e7f7c52cce9865"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/054901c3a5c0c5be4ac4f5889a1f31133701fb2e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1acb4fd2d011c4bd6cc961095ae17361c71ff61a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/666a39fcb5c9bcb600877480b121a91f59f3744e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9fe2f9b04681b2a1e3b516395ec3631967c77114"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bcb5330153a89af3170a18fb887f3b37305c2cbd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c4b9b5e0cac400c13d02ea71b44525d68170e7bc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f1f23cb28ae75284453d3947fb97d66b7fb85d6b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99850.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99850"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "fsverity: Explicitly require FMODE_READ to retrieve hashes"
}