{"id":"CVE-2026-89497","state":"PUBLISHED","title":"orangefs: skip leading spaces before parsing client debug masks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\norangefs: skip leading spaces before parsing client debug masks\n\norangefs_prepare_cdm_array() sizes each client debug keyword buffer\nwith strcspn(cds_head, \" \"), but then parses the keyword with %s. The\n%s conversion skips leading whitespace, while strcspn() does not.\n\nIf a client debug entry starts with a space, the allocation can be sized\nfor an empty keyword while sscanf() copies the following non-empty token.\nThis can write past the end of the allocated keyword buffer.\n\nSkip leading spaces before computing the keyword length so the allocation\nmatches the string parsed by sscanf().","publishedAt":"2026-09-11T19:43:47.439Z","updatedAt":"2026-10-19T08:47:48.916Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"173bfd69696815bcf1c052f61cb69c26cca4e443","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"995f4d05589f87452a56672270af28918c8939c3","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"0ef38d53bca5ea1375fea0d3d11e9727df064b85","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"ce748ae1181d0daf5dd0d2d906d5c1cc328c153b","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"15d79c806231e62a7b746d3b42626810004e1b27","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"116d14f29a0524853c9316f32a2ac06cff5d4bf6","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"1774c5b3713add32fe15ab0d3db4b73355f94e35","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"d410cd5303ec59c7cf23dd61423752ce8e9ecb59","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/orangefs/orangefs-debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/orangefs/orangefs-debugfs.c"]}],"references":["https://git.kernel.org/stable/c/173bfd69696815bcf1c052f61cb69c26cca4e443","https://git.kernel.org/stable/c/995f4d05589f87452a56672270af28918c8939c3","https://git.kernel.org/stable/c/0ef38d53bca5ea1375fea0d3d11e9727df064b85","https://git.kernel.org/stable/c/ce748ae1181d0daf5dd0d2d906d5c1cc328c153b","https://git.kernel.org/stable/c/15d79c806231e62a7b746d3b42626810004e1b27","https://git.kernel.org/stable/c/116d14f29a0524853c9316f32a2ac06cff5d4bf6","https://git.kernel.org/stable/c/1774c5b3713add32fe15ab0d3db4b73355f94e35","https://git.kernel.org/stable/c/d410cd5303ec59c7cf23dd61423752ce8e9ecb59"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89497.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89497","state":"PUBLISHED","datePublished":"2026-09-11T19:43:47.439Z","dateUpdated":"2026-10-19T08:47:48.916Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.714Z"},"containers":{"cna":{"title":"orangefs: skip leading spaces before parsing client debug masks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\norangefs: skip leading spaces before parsing client debug masks\n\norangefs_prepare_cdm_array() sizes each client debug keyword buffer\nwith strcspn(cds_head, \" \"), but then parses the keyword with %s. The\n%s conversion skips leading whitespace, while strcspn() does not.\n\nIf a client debug entry starts with a space, the allocation can be sized\nfor an empty keyword while sscanf() copies the following non-empty token.\nThis can write past the end of the allocated keyword buffer.\n\nSkip leading spaces before computing the keyword length so the allocation\nmatches the string parsed by sscanf()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"173bfd69696815bcf1c052f61cb69c26cca4e443","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"995f4d05589f87452a56672270af28918c8939c3","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"0ef38d53bca5ea1375fea0d3d11e9727df064b85","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"ce748ae1181d0daf5dd0d2d906d5c1cc328c153b","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"15d79c806231e62a7b746d3b42626810004e1b27","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"116d14f29a0524853c9316f32a2ac06cff5d4bf6","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"1774c5b3713add32fe15ab0d3db4b73355f94e35","versionType":"git"},{"version":"f7be4ee07fb72a516563bc2870ef41fa589a964a","status":"affected","lessThan":"d410cd5303ec59c7cf23dd61423752ce8e9ecb59","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/orangefs/orangefs-debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/orangefs/orangefs-debugfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/173bfd69696815bcf1c052f61cb69c26cca4e443"},{"url":"https://git.kernel.org/stable/c/995f4d05589f87452a56672270af28918c8939c3"},{"url":"https://git.kernel.org/stable/c/0ef38d53bca5ea1375fea0d3d11e9727df064b85"},{"url":"https://git.kernel.org/stable/c/ce748ae1181d0daf5dd0d2d906d5c1cc328c153b"},{"url":"https://git.kernel.org/stable/c/15d79c806231e62a7b746d3b42626810004e1b27"},{"url":"https://git.kernel.org/stable/c/116d14f29a0524853c9316f32a2ac06cff5d4bf6"},{"url":"https://git.kernel.org/stable/c/1774c5b3713add32fe15ab0d3db4b73355f94e35"},{"url":"https://git.kernel.org/stable/c/d410cd5303ec59c7cf23dd61423752ce8e9ecb59"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The overflow is reached only via ioctl(ORANGEFS_DEV_CLIENT_STRING) on /dev/pvfs2-req after orangefs_devreq_open(); orangefs_debugfs_new_client_string() copy_from_user()s the client debug-mask table from that local fd into orangefs_prepare_cdm_array(). Unlike readdir trailers, this string is not supplied by an OrangeFS server over the network.\nAC:L - A single CLIENT_STRING ioctl whose first newline-delimited entry begins with spaces then a long non-whitespace token deterministically makes strcspn() return 0 while sscanf(\"%s\") copies that token; the attacker fully controls the 2048-byte buffer and needs no race, heap layout, or other state outside their control.\nPR:L - orangefs_devreq_open() checks only init_user_ns, O_NONBLOCK, and exclusive open—no capability. The kernel documents mknod /dev/pvfs2-req, which is typically world-readable, and ioctl works on O_RDONLY, so an unprivileged local user can open the node when client-core is not holding it; user namespaces cannot open it, but init-ns DAC is enough.\nUI:N - The attacker opens /dev/pvfs2-req and issues the crafted CLIENT_STRING ioctl themselves. No victim must mount OrangeFS, start pvfs2-client-core, or otherwise interact; an already-loaded module and device node are deployment state, not user interaction.\nS:U - The heap overflow and any resulting kernel memory corruption or oops occur in the same kernel that services the ioctl. This is a standard local kernel compromise, not a VM/IOMMU/sandbox boundary crossing.\nC:H - sscanf(\"%s\") with no field width copies an attacker-chosen token (up to the 2048-byte ioctl buffer) into a kzalloc(1) keyword, a large heap overflow that can overwrite adjacent slab objects and pointers, yielding an arbitrary read primitive per CNA memory-corruption guidance.\nI:H - The same unbounded out-of-bounds write smashes heap metadata and neighboring objects with attacker-controlled bytes, which is sufficient for arbitrary write and control-flow hijack; CNA guidance rates heap buffer overflows High for integrity.\nA:H - Overflowing a 1-byte slab allocation by up to ~2KB of attacker data reliably corrupts the heap and can oops/panic the kernel even without a full exploit, so availability impact is High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:47:48.916Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}