{"id":"CVE-2026-138831","aliases":["CVE-2026-138831"],"related":[],"kind":"vulnerability","state":"published","title":"mm/shmem: report RCU-tasks quiescent states while undoing a range","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: report RCU-tasks quiescent states while undoing a range\n\nThis shows up in the Meta fleet on ftruncate() of large tmpfs files:\n\n  INFO: rcu_tasks detected stalls on tasks:\n  00000000752fd185: .. nvcsw: 59455/59455 holdout: 1 idle_cpu: -1/0\n  task:rocksdb:bottom  state:R  running task\n    __folio_split\n    find_get_entry\n    find_get_entries\n    truncate_inode_partial_folio\n    shmem_undo_range\n    shmem_setattr\n    notify_change\n    do_ftruncate\n    __x64_sys_ftruncate\n    do_syscall_64\n\nshmem_undo_range() walks the whole of the requested range in folio_batch\nsized steps, twice, and its two cond_resched() calls are the only\nreschedule points in that walk.\n\ncond_resched() is not an RCU-tasks quiescent state.  Use\ncond_resched_tasks_rcu_qs() at both points so the walk reports an\nRCU-tasks quiescent state as it proceeds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: report RCU-tasks quiescent states while undoing a range\n\nThis shows up in the Meta fleet on ftruncate() of large tmpfs files:\n\n  INFO: rcu_tasks detected stalls on tasks:\n  00000000752fd185: .. nvcsw: 59455/59455 holdout: 1 idle_cpu: -1/0\n  task:rocksdb:bottom  state:R  running task\n    __folio_split\n    find_get_entry\n    find_get_entries\n    truncate_inode_partial_folio\n    shmem_undo_range\n    shmem_setattr\n    notify_change\n    do_ftruncate\n    __x64_sys_ftruncate\n    do_syscall_64\n\nshmem_undo_range() walks the whole of the requested range in folio_batch\nsized steps, twice, and its two cond_resched() calls are the only\nreschedule points in that walk.\n\ncond_resched() is not an RCU-tasks quiescent state.  Use\ncond_resched_tasks_rcu_qs() at both points so the walk reports an\nRCU-tasks quiescent state as it proceeds.","source":"cvelist"}],"published":"2026-11-30T13:25:23.464Z","modified":"2026-11-30T14:17:37.470Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"1aefb97c6663c120f8643f94963ea8d907569ca8","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"72d72aa2b437c9c4d9742c138ec65f3399ee4ae6","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"958a8aa3f1abc9b6bbe501d1c88ad324f9bbab32","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"96c426b253ebc77d46c817ace18c42b78e4c4d23","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"2edb293e97e7f64a75919e28075763c6241c489b","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"b5b95b5176045583130799e05cdd6d00735536e9","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"9f8f6a2df0f9d3ce5406e4003da62f0a56771536","status":"affected"},{"type":"git","introduced":"8315f42295d2667a7f942f154b73a86fd7cb2227","fixed":"ebd1a08c192109c83a87ddf42793ed6283180faf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1aefb97c6663c120f8643f94963ea8d907569ca8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/72d72aa2b437c9c4d9742c138ec65f3399ee4ae6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/958a8aa3f1abc9b6bbe501d1c88ad324f9bbab32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96c426b253ebc77d46c817ace18c42b78e4c4d23","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2edb293e97e7f64a75919e28075763c6241c489b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5b95b5176045583130799e05cdd6d00735536e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f8f6a2df0f9d3ce5406e4003da62f0a56771536","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ebd1a08c192109c83a87ddf42793ed6283180faf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138831","url":"https://www.cve.org/CVERecord?id=CVE-2026-138831","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:23.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138831","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138831","licence":"Public domain","modified":"2026-11-30T14:17:37.470Z"}],"updatedAt":"2026-11-30T14:32:56.311Z","epss":{"score":0.00185,"percentile":0.0847,"date":"2026-12-01T12:00:22.000Z"}}