Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
ext2: fix ignored return value of generic_write_sync()

In the Linux kernel, the following vulnerability has been resolved: ext2: fix ignored return value of generic_write_sync() Fix ext2_dio_write_iter() to propagate the error returned by generic_write_sync() instead of silently discarding it, which could cause write(2) to return success to userspace on O_SYNC/O_DSYNC files even when the sync failed. The correct pattern, already used in ext2_dax_write_iter() in the same file and in ext4, xfs, f2fs among others, is: if (ret > 0) ret = generic_write_sync(iocb, ret); Found by Linux Verification Center (linuxtesting.org) with SVACE. [JK: Reflect also filemap_write_and_wait() return value]

Affected products

Linux
  • ==6.5
  • <a4659be0bc7cb1856ffb15b67f903229ae8891ec
  • <6.5
  • =<6.6.*
  • =<*
  • <8990dbb7065b0b002b1e58b9091a5b61f5e94dbe
  • <b6bc07e49a5fbb335f56eb90cd63dec6584c77d3
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • <8d70b3973020e59845c0bdad90e0b9c2295fd493
  • <ffa974b2f50ad8b911b9066d7aed84ad0afabcdb