You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated protection of remove_all against CVE-2022-21658 on Windows.
This follows up the previous update for POSIX.
The new implementation of remove_all on Windows Vista and later uses
NtCreateFile internal function in order to open files relative to
a previously opened directory handle, similar to POSIX openat.
Furthermore, querying file status and removing the file is now also
done through file handles to avoid performing path resolutions.
Closesboostorg#224.
Copy file name to clipboardExpand all lines: doc/release_history.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ <h2>1.80.0</h2>
45
45
<li>On Windows, added a workaround for FAT/exFAT filesystems that produce <code>ERROR_INVALID_PARAMETER</code> when querying file attributes. This affected <code>status</code> and <code>symlink_status</code>, which reported that files do not exist, and directory iterators, which failed to construct, as well as other dependent operations. (<ahref="https://github.com/boostorg/filesystem/issues/236">#236</a>, <ahref="https://github.com/boostorg/filesystem/issues/237">#237</a>)</li>
46
46
<li>Worked around a compilation problem on <ahref="https://www.rtems.org/">RTEMS</a>. (<ahref="https://github.com/boostorg/filesystem/pull/240">#240</a>)</li>
47
47
<li>On Linux, corrected switching to <code>sendfile</code><code>copy_file</code> implementation if <code>copy_file_range</code> failed with <code>ENOSYS</code> in runtime. The <code>sendfile</code> fallback implementation used to skip the filesystem type check and could fail for some filesystems.</li>
48
-
<li>On POSIX systems supporting <code>openat</code> and related APIs defined in POSIX.1-2008, improved protection of <code>remove_all</code> against <ahref="https://www.cve.org/CVERecord?id=CVE-2022-21658">CVE-2022-21658</a> that was implemented in the previous release. The previous fix could still result in removing unintended files in <ahref="https://github.com/boostorg/filesystem/issues/224#issuecomment-1183738097">certain conditions</a>. Other systems, including Windows, remain vulnerable.</li>
48
+
<li>On POSIX systems supporting <code>openat</code> and related APIs defined in POSIX.1-2008 and on Windows Vista and later, improved protection of <code>remove_all</code> against <ahref="https://www.cve.org/CVERecord?id=CVE-2022-21658">CVE-2022-21658</a> that was implemented in the previous release. The previous fix could still result in removing unintended files in <ahref="https://github.com/boostorg/filesystem/issues/224#issuecomment-1183738097">certain conditions</a>. Other systems remain vulnerable.</li>
0 commit comments