{"id":"CVE-2026-89713","summary":"NFSD: check truncate permission under inode lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: check truncate permission under inode lock\n\nnfsd_setattr() checks whether a size update needs NFSD_MAY_TRUNC\nbefore it takes inode_lock(). The comparison uses the file size sampled\nby that unlocked read, but the actual ATTR_SIZE update is applied later\nunder inode_lock() by notify_change().\n\nThis leaves a TOCTOU window for append-only files. If a client sends a\nSETATTR that does not shrink the file at the time of the unlocked\nsample, a concurrent append can extend the file before nfsd_setattr()\ntakes inode_lock(). notify_change() then applies a real truncation\nwithout the NFSD_MAY_TRUNC check that rejects IS_APPEND(inode). The VFS\ntruncate syscall paths perform their own append-only checks before\ncalling notify_change(), so NFSD must make this decision against the\nlocked size it is about to change.\n\nSplit the write-count acquisition from the truncation permission check.\nKeep get_write_access() before the locked setattr work, then recheck\nwhether the requested size is below i_size_read(inode) after inode_lock()\nhas been acquired and before notify_change(ATTR_SIZE). This also avoids\nthe plain unlocked inode-\u003ei_size load.","modified":"2026-09-13T03:47:20.391975271Z","published":"2026-09-11T19:46:27.752Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89713.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3afa17d93ba8c925f49370c816c6dae5112d8c24"},{"type":"WEB","url":"https://git.kernel.org/stable/c/44086254479035de42ca3d286ecf25521d4e6325"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b778e0e0a16759f22a70579c3cf8d254a40d4a7f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8352da196349182e1afd5a93308256cddc0a97d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89713.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89713"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"783112f7401ff449d979530209b3f6c2594fdb4e"},{"fixed":"3afa17d93ba8c925f49370c816c6dae5112d8c24"},{"fixed":"d8352da196349182e1afd5a93308256cddc0a97d"},{"fixed":"44086254479035de42ca3d286ecf25521d4e6325"},{"fixed":"b778e0e0a16759f22a70579c3cf8d254a40d4a7f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"604a3c407026d6162d15300478e63f901e435efc"},{"last_affected":"cc4d5dc73841b98d33cdfb9822d70b0aac4beca5"},{"last_affected":"3ee4f442e5b37a537297b812557b1163f96b5399"},{"last_affected":"a3c6cbc4eac4473ed5461d5faae2794d3e5c0e44"},{"last_affected":"982898d7f97a35447403c3fcecc0d96c646ce101"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3.2.89"},{"fixed":"3.3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3.16.44"},{"fixed":"3.17"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4.4.53"},{"fixed":"4.5"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4.9.14"},{"fixed":"4.10"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4.10.2"},{"fixed":"4.11"}]}],"versions":["v3.16.43","v3.2.88","v3.16.42","v3.2.87","v4.10","v3.16.41","v3.2.86","v4.10.1","v4.9.13","v4.4.52","v4.9","v3.16.40","v3.2.85","v4.9.12","v4.4.51","v4.9.11","v4.4.50","v3.16.39","v3.2.84","v4.10-rc8","v4.10-rc3","v4.10-rc1","v4.10-rc7","v4.4.49","v4.9.10","v4.10-rc6","v4.10-rc2","v4.9.9","v4.4.48","v4.10-rc5","v4.9.8","v4.4.47","v4.9.7","v4.4.46","v4.9.6","v4.4.45","v4.10-rc4","v4.9.5","v4.4.44","v4.9.4","v4.4.43","v4.9.3","v4.4.42","v4.9.2","v4.4.41","v4.9.1","v4.4.40","v4.4.39","v4.9-rc7","v4.9-rc6","v4.9-rc8","v4.4.38","v4.9-rc1","v4.4.37","v4.9-rc5","v4.4.36","v4.9-rc3","v4.4.35","v4.9-rc4","v4.4.34","v4.9-rc2","v4.4.33","v3.16.38","v3.2.83","v4.4.32","v4.4.31","v4.4.30","v4.8","v4.4.29","v4.4.28","v4.4.27","v4.4.26","v3.16.37","v3.2.82","v4.4.25","v4.4.24","v4.4.23","v4.8-rc8","v4.8-rc2","v4.8-rc1","v4.8-rc7","v4.4.22","v4.8-rc6","v4.8-rc5","v4.4.21","v4.8-rc4","v4.4.20","v4.8-rc3","v4.7","v4.4.19","v3.16.36","v3.2.81","v4.4.18","v4.4.17","v4.4.16","v4.7-rc4","v4.7-rc2","v4.4.15","v4.7-rc1","v4.7-rc7","v4.7-rc6","v4.7-rc3","v4.4.14","v4.7-rc5","v4.4.13","v4.6","v4.6-rc1","v3.16.35","v3.2.80","v4.4.12","v4.4.11","v4.6-rc6","v4.6-rc4","v4.6-rc7","v4.4.10","v4.6-rc5","v4.5-rc4","v4.6-rc2","v4.4.9","v4.6-rc3","v4.4.8","v3.2.79","v4.5","v4.4.7","v4.4.6","v3.2.78","v4.4","v4.5-rc1","v4.5-rc6","v4.4.5","v4.5-rc2","v4.5-rc7","v4.5-rc5","v4.4.4","v4.5-rc3","v4.4.3","v3.2.77","v4.4.2","v4.4.1","v3.2.76","v3.2.75","v4.4-rc1","v4.4-rc2","v4.4-rc8","v4.4-rc3","v4.4-rc7","v4.4-rc5","v4.4-rc6","v4.4-rc4","v3.2.74","v4.3","v3.2.73","v3.2.72","v4.3-rc1","v4.3-rc6","v4.3-rc4","v4.3-rc2","v4.3-rc7","v4.3-rc5","v4.3-rc3","v4.2","v3.2.71","v4.2-rc2","v4.2-rc1","v4.2-rc8","v4.2-rc4","v4.2-rc6","v4.2-rc7","v4.0-rc5","v3.2.70","v4.2-rc5","v3.2.69","v4.2-rc3","v4.1-rc2","v4.1","v4.1-rc1","v4.1-rc8","v4.1-rc7","v4.1-rc6","v4.1-rc3","v4.1-rc4","v4.0","v4.1-rc5","v3.2.68","v4.0-rc1","v4.0-rc2","v4.0-rc7","v4.0-rc3","v4.0-rc6","v4.0-rc4","v3.19","v3.2.67","v3.2.66","v3.19-rc7","v3.19-rc5","v3.19-rc1","v3.19-rc6","v3.19-rc4","v3.18-rc1","v3.19-rc3","v3.19-rc2","v3.18","v3.2.65","v3.2.64","v3.18-rc7","v3.18-rc6","v3.18-rc2","v3.18-rc3","v3.18-rc4","v3.18-rc5","v3.17","v3.2.63","v3.16.7","v3.16.6","v3.17-rc1","v3.16.5","v3.17-rc7","v3.16.4","v3.17-rc2","v3.16.3","v3.17-rc4","v3.16","v3.17-rc5","v3.17-rc6","v3.16.2","v3.17-rc3","v3.2.62","v3.16.1","v3.16-rc7","v3.2.61","v3.16-rc1","v3.16-rc3","v3.16-rc5","v3.16-rc6","v3.16-rc2","v3.16-rc4","v3.13","v3.2.60","v3.15","v3.15-rc5","v3.2.59","v3.15-rc8","v3.15-rc1","v3.15-rc6","v3.15-rc3","v3.15-rc7","v3.15-rc2","v3.15-rc4","v3.2.58","v3.14","v3.14-rc4","v3.2.57","v3.14-rc8","v3.14-rc7","v3.2.56","v3.14-rc6","v3.14-rc1","v3.14-rc2","v3.2.55","v3.14-rc5","v3.14-rc3","v3.2.54","v3.13-rc6","v3.13-rc8","v3.12","v3.13-rc7","v3.13-rc1","v3.13-rc4","v3.13-rc3","v3.13-rc5","v3.2.53","v3.13-rc2","v3.2.52","v3.12-rc7","v3.12-rc3","v3.12-rc6","v3.12-rc1","v3.12-rc5","v3.11","v3.12-rc2","v3.12-rc4","v3.2.51","v3.2.50","v3.11-rc7","v3.11-rc2","v3.11-rc5","v3.11-rc1","v3.11-rc3","v3.11-rc4","v3.11-rc6","v3.10-rc2","v3.2.49","v3.2.48","v3.10","v3.10-rc7","v3.2.47","v3.10-rc6","v3.10-rc1","v3.10-rc5","v3.10-rc3","v3.2.46","v3.10-rc4","v3.2.45","v3.9","v3.2.44","v3.9-rc2","v3.9-rc7","v3.9-rc8","v3.2.43","v3.9-rc3","v3.9-rc6","v3.9-rc5","v3.9-rc4","v3.9-rc1","v3.2.42","v3.8","v3.2.41","v3.2.40","v3.2.39","v3.8-rc7","v3.8-rc6","v3.2.38","v3.8-rc5","v3.8-rc2","v3.2.37","v3.8-rc1","v3.8-rc3","v3.8-rc4","v3.2.36","v3.7","v3.2.35","v3.7-rc1","v3.6","v3.7-rc6","v3.7-rc7","v3.7-rc3","v3.7-rc8","v3.2.34","v3.7-rc2","v3.7-rc4","v3.7-rc5","v3.2.33","v3.2.32","v3.2.31","v3.2.30","v3.6-rc7","v3.6-rc1","v3.5-rc3","v3.6-rc6","v3.6-rc5","v3.5","v3.6-rc3","v3.6-rc4","v3.2.29","v3.6-rc2","v3.2.28","v3.4-rc4","v3.2.27","v3.2.26","v3.2.25","v3.2.24","v3.5-rc7","v3.2.23","v3.5-rc5","v3.5-rc6","v3.5-rc2","v3.2.22","v3.5-rc1","v3.5-rc4","v3.2.21","v3.4","v3.2.20","v3.2.19","v3.2.18","v3.4-rc2","v3.4-rc1","v3.2.17","v3.4-rc7","v3.4-rc6","v3.4-rc3","v3.4-rc5","v3.2.16","v3.2.15","v3.3","v3.2.14","v3.2.13","v3.3-rc6","v3.3-rc3","v3.2.12","v3.3-rc7","v3.2.11","v3.3-rc2","v3.3-rc5","v3.2","v3.2.10","v3.3-rc4","v3.2.9","v3.3-rc1","v3.2.8","v3.2.7","v3.2.6","v3.2.5","v3.2.4","v3.2.3","v3.2.2","v3.2.1","v3.2-rc4","v3.2-rc7","v3.2-rc6","v3.2-rc5","v3.2-rc3","v3.1","v3.2-rc2","v3.2-rc1","v3.1-rc1","v3.1-rc9","v3.1-rc8","v3.1-rc10","v3.1-rc7","v3.1-rc3","v3.1-rc2","v3.1-rc4","v3.1-rc5","v3.0","v3.1-rc6","v3.0-rc7","v3.0-rc4","v3.0-rc6","v3.0-rc5","v3.0-rc3","v3.0-rc1","v2.6.39","v3.0-rc2","v2.6.38","v2.6.39-rc2","v2.6.39-rc7","v2.6.39-rc5","v2.6.39-rc1","v2.6.38-rc7","v2.6.39-rc6","v2.6.39-rc4","v2.6.39-rc3","v2.6.37","v2.6.38-rc1","v2.6.38-rc8","v2.6.38-rc2","v2.6.38-rc6","v2.6.38-rc5","v2.6.38-rc4","v2.6.38-rc3","v2.6.37-rc4","v2.6.37-rc2","v2.6.36","v2.6.37-rc5","v2.6.37-rc8","v2.6.37-rc7","v2.6.37-rc6","v2.6.37-rc1","v2.6.37-rc3","v2.6.36-rc6","v2.6.35-rc4","v2.6.36-rc8","v2.6.35","v2.6.36-rc7","v2.6.36-rc3","v2.6.36-rc5","v2.6.36-rc4","v2.6.36-rc2","v2.6.36-rc1","v2.6.35-rc5","v2.6.35-rc6","v2.6.34","v2.6.35-rc3","v2.6.35-rc1","v2.6.35-rc2","v2.6.34-rc7","v2.6.34-rc6","v2.6.34-rc5","v2.6.34-rc4","v2.6.34-rc3","v2.6.34-rc2","v2.6.34-rc1","v2.6.33","v2.6.33-rc6","v2.6.33-rc8","v2.6.33-rc4","v2.6.33-rc5","v2.6.33-rc3","v2.6.33-rc7","v2.6.33-rc2","v2.6.32","v2.6.33-rc1","v2.6.32-rc8","v2.6.32-rc7","v2.6.32-rc6","v2.6.31","v2.6.32-rc5","v2.6.32-rc4","v2.6.32-rc2","v2.6.32-rc1","v2.6.32-rc3","v2.6.31-rc9","v2.6.31-rc1","v2.6.31-rc7","v2.6.31-rc8","v2.6.31-rc6","v2.6.30-rc6","v2.6.30","v2.6.31-rc4","v2.6.31-rc5","v2.6.31-rc3","v2.6.31-rc2","v2.6.30-rc7","v2.6.30-rc8","v2.6.30-rc5","v2.6.30-rc3","v2.6.30-rc4","v2.6.30-rc1","v2.6.30-rc2","v2.6.29","v2.6.29-rc8","v2.6.29-rc7","v2.6.29-rc5","v2.6.29-rc1","v2.6.29-rc6","v2.6.29-rc4","v2.6.29-rc3","v2.6.29-rc2","v2.6.28","v2.6.28-rc7","v2.6.28-rc9","v2.6.28-rc8","v2.6.28-rc6","v2.6.28-rc5","v2.6.28-rc4","v2.6.28-rc2","v2.6.28-rc3","v2.6.28-rc1","v2.6.27","v2.6.27-rc7","v2.6.27-rc9","v2.6.27-rc8","v2.6.27-rc5","v2.6.27-rc6","v2.6.27-rc4","v2.6.27-rc1","v2.6.27-rc3","v2.6.27-rc2","v2.6.26","v2.6.26-rc9","v2.6.26-rc8","v2.6.26-rc3","v2.6.26-rc7","v2.6.26-rc6","v2.6.26-rc5","v2.6.26-rc4","v2.6.26-rc2","v2.6.26-rc1","v2.6.25","v2.6.25-rc7","v2.6.25-rc9","v2.6.25-rc8","v2.6.25-rc6","v2.6.25-rc5","v2.6.25-rc3","v2.6.25-rc4","v2.6.24","v2.6.25-rc2","v2.6.25-rc1","v2.6.24-rc8","v2.6.24-rc7","v2.6.24-rc6","v2.6.24-rc5","v2.6.24-rc4","v2.6.24-rc3","v2.6.24-rc2","v2.6.24-rc1","v2.6.23","v2.6.23-rc9","v2.6.23-rc8","v2.6.23-rc5","v2.6.23-rc7","v2.6.23-rc6","v2.6.23-rc4","v2.6.23-rc3","v2.6.23-rc2","v2.6.23-rc1","v2.6.22","v2.6.22-rc7","v2.6.22-rc6","v2.6.22-rc5","v2.6.22-rc4","v2.6.22-rc3","v2.6.22-rc2","v2.6.22-rc1","v2.6.21","v2.6.21-rc7","v2.6.21-rc6","v2.6.21-rc5","v2.6.21-rc4","v2.6.21-rc3","v2.6.21-rc2","v2.6.21-rc1","v2.6.20-rc7","v2.6.20-rc6","v2.6.20-rc5","v2.6.20-rc4","v2.6.20-rc3","v2.6.20-rc1","v2.6.20-rc2","v2.6.19-rc2","v2.6.18","v2.6.19-rc1","v2.6.18-rc6","v2.6.18-rc5","v2.6.18-rc3","v2.6.18-rc2","v2.6.18-rc1","v2.6.17","v2.6.17-rc4","v2.6.17-rc6","v2.6.17-rc5","v2.6.17-rc3","v2.6.17-rc2","v2.6.17-rc1","v2.6.16","v2.6.16-rc6","v2.6.16-rc4","v2.6.16-rc5","v2.6.16-rc3","v2.6.16-rc2","v2.6.16-rc1","v2.6.15-rc7","v2.6.15-rc5","v2.6.15-rc4","v2.6.15-rc2","v2.6.15-rc1","v2.6.14-rc3","v2.6.14-rc2","v2.6.14-rc1","v2.6.13","v2.6.13-rc7","v2.6.13-rc6","v2.6.13-rc5","v2.6.13-rc3","v2.6.13-rc4","v2.6.13-rc2","v2.6.13-rc1","v2.6.12-rc4","v2.6.12-rc3","v2.6.12-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89713.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.11.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89713.json"}}],"schema_version":"1.9.0"}