| 1 |
# `fscrypt` release notes |
| 2 |
|
| 3 |
## Version 0.3.7 |
| 4 |
|
| 5 |
* Upgraded various dependencies, including `golang.org/x/crypto` to resolve the |
| 6 |
usual CVEs in it (but as usual, not actually affecting `fscrypt`'s use of it). |
| 7 |
|
| 8 |
* When selecting password hashing parameters, `fscrypt` now takes cgroup |
| 9 |
limitations into consideration. |
| 10 |
|
| 11 |
* `fscrypt encrypt` no longer follows trailing symlinks when writing the |
| 12 |
recovery instructions. |
| 13 |
|
| 14 |
* `fscrypt unlock` no longer enters an infinite loop when an incorrect key file |
| 15 |
is specified using `--key=FILE`, `--quiet` isn't specified, and standard input |
| 16 |
is a terminal. |
| 17 |
|
| 18 |
* `fscrypt unlock` no longer enters an infinite loop when an incorrect password |
| 19 |
is specified, `--quiet` isn't specified, and standard input isn't a terminal. |
| 20 |
|
| 21 |
* The error message when multiple protectors are available now mentions |
| 22 |
`--unlock-with` in addition to `--protector`. |
| 23 |
|
| 24 |
* Documented the udev dependency for `/dev/disk/by-uuid/` links. |
| 25 |
|
| 26 |
## Version 0.3.6 |
| 27 |
|
| 28 |
* Upgraded various dependencies, including `golang.org/x/crypto` where the |
| 29 |
upgrade resolves CVE-2024-45337 and CVE-2025-22869. (These vulnerabilities |
| 30 |
didn't actually affect `fscrypt`, as it doesn't use the relevant features.) |
| 31 |
|
| 32 |
* `fscrypt` now requires Go 1.23 or later to build. |
| 33 |
|
| 34 |
* Added fallback logic for when sysfs is not mounted. |
| 35 |
|
| 36 |
* Other minor fixes and documentation improvements. |
| 37 |
|
| 38 |
## Version 0.3.5 |
| 39 |
|
| 40 |
* Upgraded various dependencies, resolving two security alerts from GitHub. |
| 41 |
|
| 42 |
* `fscrypt` now requires Go 1.18 or later to build. |
| 43 |
|
| 44 |
* `fscrypt` now provides a better error message when it's asked to operate on a |
| 45 |
locked regular file. |
| 46 |
|
| 47 |
* Made some improvements to the documentation. |
| 48 |
|
| 49 |
## Version 0.3.4 |
| 50 |
|
| 51 |
* `fscrypt` now requires Go 1.16 or later to build. |
| 52 |
|
| 53 |
* `pam_fscrypt` now supports the option `unlock_only` to disable locking of |
| 54 |
directories on logout. |
| 55 |
|
| 56 |
* Fixed a bug where the number of CPUs used in the passphrase hash would be |
| 57 |
calculated incorrectly on systems with more than 255 CPUs. |
| 58 |
|
| 59 |
* Added support for AES-256-HCTR2 filenames encryption. |
| 60 |
|
| 61 |
* Directories are now synced immediately after an encryption policy is applied, |
| 62 |
reducing the chance of an inconsistency after a sudden crash. |
| 63 |
|
| 64 |
* Added Lustre to the list of allowed filesystems. |
| 65 |
|
| 66 |
* Added a NEWS.md file that contains the release notes, and backfilled it from |
| 67 |
the GitHub release notes. |
| 68 |
|
| 69 |
## Version 0.3.3 |
| 70 |
|
| 71 |
This release contains fixes for three security vulnerabilities and related |
| 72 |
security hardening: |
| 73 |
|
| 74 |
* Correctly handle malicious mountpoint paths in the `fscrypt` bash completion |
| 75 |
script (CVE-2022-25328, command injection). |
| 76 |
|
| 77 |
* Validate the size, type, and owner (for login protectors) of policy and |
| 78 |
protector files (CVE-2022-25327, denial of service). |
| 79 |
|
| 80 |
* Make the `fscrypt` metadata directories non-world-writable by default |
| 81 |
(CVE-2022-25326, denial of service). |
| 82 |
|
| 83 |
* When running as a non-root user, ignore policy and protector files that aren't |
| 84 |
owned by the user or by root. |
| 85 |
|
| 86 |
* Also require that the metadata directories themselves and the mountpoint root |
| 87 |
directory be owned by the user or by root. |
| 88 |
|
| 89 |
* Make policy and protector files mode `0600` rather than `0644`. |
| 90 |
|
| 91 |
* Make all relevant files owned by the user when `root` encrypts a directory |
| 92 |
with a user's login protector, not just the login protector itself. |
| 93 |
|
| 94 |
* Make `pam_fscrypt` ignore system users completely. |
| 95 |
|
| 96 |
Thanks to Matthias Gerstner (SUSE) for reporting the above vulnerabilities and |
| 97 |
suggesting additional hardening. |
| 98 |
|
| 99 |
Note: none of these vulnerabilities or changes are related to the cryptography |
| 100 |
used. The main issue was that it wasn't fully considered how `fscrypt`'s |
| 101 |
metadata storage method could lead to denial-of-service attacks if a local user |
| 102 |
is malicious. |
| 103 |
|
| 104 |
Although upgrading to v0.3.3 shouldn't break existing users, there may be some |
| 105 |
edge cases where users were relying on functionality in ways we didn't |
| 106 |
anticipate. If you encounter any issues, please report them as soon as possible |
| 107 |
so that we can find a solution for you. |
| 108 |
|
| 109 |
## Version 0.3.2 |
| 110 |
|
| 111 |
* Made linked protectors (e.g., login protectors used on a non-root filesystem) |
| 112 |
more reliable when a filesystem UUID changes. |
| 113 |
|
| 114 |
* Made login protectors be owned by the user when they are created as root, so |
| 115 |
that the user has permission to update them later. |
| 116 |
|
| 117 |
* Made `fscrypt` work when the root directory is on a btrfs filesystem. |
| 118 |
|
| 119 |
* Made `pam_fscrypt` start warning when a user's login protector is getting |
| 120 |
de-synced due to their password being changed by root. |
| 121 |
|
| 122 |
* Support reading the key for raw key protectors from standard input. |
| 123 |
|
| 124 |
* Made `fscrypt metadata remove-protector-from-policy` work even if the |
| 125 |
protector is no longer accessible. |
| 126 |
|
| 127 |
* Made `fscrypt` stop trying to access irrelevant filesystems. |
| 128 |
|
| 129 |
* Improved the documentation. |
| 130 |
|
| 131 |
## Version 0.3.1 |
| 132 |
|
| 133 |
* Slightly decreased the amount of memory that `fscrypt` uses for password |
| 134 |
hashing, to avoid out-of-memory situations. |
| 135 |
|
| 136 |
* Made recovery passphrase generation happen without a prompt by default, and |
| 137 |
improved the explanation given. |
| 138 |
|
| 139 |
* Made many improvements to the README file. |
| 140 |
|
| 141 |
* Various other minor fixes |
| 142 |
|
| 143 |
## Version 0.3.0 |
| 144 |
|
| 145 |
While this release includes some potentially breaking changes, we don't expect |
| 146 |
this to break users in practice. |
| 147 |
|
| 148 |
* Potentially breaking changes to `pam_fscrypt` module: |
| 149 |
* Remove the `drop_caches` and `lock_policies` options. The `lock_policies` |
| 150 |
behavior is now unconditional, while the correct `drop_caches` setting is |
| 151 |
now auto-detected. Existing PAM files that specify these options will |
| 152 |
continue to work, but these options will now be ignored. |
| 153 |
* Prioritize over other session modules. The `pam_fscrypt` session hook is |
| 154 |
now inserted into the correct place in the PAM stack when `pam_fscrypt` is |
| 155 |
configured using Debian's / Ubuntu's PAM configuration framework. |
| 156 |
|
| 157 |
* Non-breaking changes: |
| 158 |
* Add Bash completions for `fscrypt`. |
| 159 |
* Fix an error message. |
| 160 |
* Correctly detect "incompletely locked" v1-encrypted directories on kernel |
| 161 |
versions 5.10 and later. |
| 162 |
|
| 163 |
* Other: |
| 164 |
* Improve Ubuntu installation instructions. |
| 165 |
* Minor README updates |
| 166 |
* CI updates, including switching from Travis CI to GitHub Actions |
| 167 |
|
| 168 |
## Version 0.2.9 |
| 169 |
|
| 170 |
This release includes: |
| 171 |
|
| 172 |
* Fix 32-bit build. This was supposed to be fixed in v0.2.8, but another |
| 173 |
breakage was added in the same release. |
| 174 |
|
| 175 |
* Clarify output of `fscrypt status DIR` on v1-encrypted directories in some |
| 176 |
cases. |
| 177 |
|
| 178 |
* [Developers] |
| 179 |
* Add 32-bit build to presubmit checks. |
| 180 |
* Fix `cli-tests/t_v1_policy` to not be flaky. |
| 181 |
|
| 182 |
## Version 0.2.8 |
| 183 |
|
| 184 |
* Build fixes |
| 185 |
* Fix build on 32-bit platforms. |
| 186 |
* Fix build with gcc 10. |
| 187 |
|
| 188 |
* Allow `fscrypt` to work in containers. |
| 189 |
|
| 190 |
* Usability improvements |
| 191 |
* Improve many error messages and suggestions. For example, if the |
| 192 |
`encrypt` feature flag needs to be enabled on an ext4 filesystem, |
| 193 |
`fscrypt` will now show the `tune2fs` command to run. |
| 194 |
* Document how to securely use login protectors, and link to that |
| 195 |
documentation when creating a new login protector. |
| 196 |
* Try to detect incomplete locking of v1-encrypted directory. |
| 197 |
* Several other small improvements |
| 198 |
|
| 199 |
* [Developers] Added command-line interface tests. |
| 200 |
|
| 201 |
## Version 0.2.7 |
| 202 |
|
| 203 |
The main addition in this release is that we now automatically detect support |
| 204 |
for V2 policies when running `fscrypt setup` and configure `/etc/fscrypt.conf` |
| 205 |
appropriately. This allows users on newer kernels to automatically start using |
| 206 |
V2 policies without manually changing `/etc/fscrypt.conf`. To use these new |
| 207 |
policies, simply run `sudo fscrypt setup` and your `/etc/fscrypt.conf` will be |
| 208 |
automatically updated. |
| 209 |
|
| 210 |
We also made changes to make the build of `fscrypt` reproducible: |
| 211 |
* Simplify `fscrypt --version` output. |
| 212 |
* Use `-trimpath`. |
| 213 |
|
| 214 |
Finally, we added improved documentation and fixed up the Makefile. |
| 215 |
|
| 216 |
## Version 0.2.6 |
| 217 |
|
| 218 |
The big feature in this release is support for v2 kernel encryption policies. |
| 219 |
With the release of Linux 5.4, the kernel added a [new type of |
| 220 |
policy](https://www.kernel.org/doc/html/latest/filesystems/fscrypt.html) that |
| 221 |
makes `fscrypt` much easier to use. For directories using these new policies: |
| 222 |
|
| 223 |
* `fscrypt unlock` makes the plaintext version of the directory visible to all |
| 224 |
users (if they have permission). This makes sharing encrypted folders between |
| 225 |
users (or a user and root) much easier. |
| 226 |
|
| 227 |
* `fscrypt lock` (also new in this release) can be run as a non-root user. |
| 228 |
|
| 229 |
* The policies are no longer tied to the buggy kernel keyring API. |
| 230 |
* This removes the need for users to run `keyctl link` or to reconfigure |
| 231 |
`pam_keyinit`. |
| 232 |
* Some systemd related bugs will no longer be an issue. |
| 233 |
|
| 234 |
* Denial-of-Service attacks possible with the v1 API can no longer be used. |
| 235 |
|
| 236 |
To use this new functionality, make sure you are on Linux 5.4 or later. Then, |
| 237 |
add `"policy_version": "2"` to `"options"` in `/etc/fscrypt.conf`. After this, |
| 238 |
all new directories will encrypted with v2 polices. See the `README.md` for |
| 239 |
more information, including how to use some of the new kernel features with |
| 240 |
existing directories. |
| 241 |
|
| 242 |
Many thanks to @ebiggers for the herculean effort to get this code (and the |
| 243 |
kernel code) tested and merged. |
| 244 |
|
| 245 |
Other new features in this release: |
| 246 |
* The `.fscrypt` directory can now be a symlink. |
| 247 |
* When an encrypted directory and a protector reside on different |
| 248 |
filesystems, we now automatically create a recovery password. |
| 249 |
|
| 250 |
Bug fixes in this release: |
| 251 |
* Bind mounts are now handled correctly. |
| 252 |
* Cleanup polices/protectors on failure. |
| 253 |
* Config file is created with the correct mode. |
| 254 |
* `fscrypt setup` now properly creates `/.fscrypt`. |
| 255 |
* Work around strange Go interaction with process keyrings. |
| 256 |
* Misc Optimizations |
| 257 |
* Build and CI improvements |
| 258 |
* Doc updates |
| 259 |
|
| 260 |
## Version 0.2.5 |
| 261 |
|
| 262 |
A special thanks to @ebiggers for most of the changes in this release. |
| 263 |
|
| 264 |
With the release of 1.13 recently, the minimum supported version of Go for |
| 265 |
`fscrypt` is now 1.12. |
| 266 |
|
| 267 |
`fscrypt` now uses go modules (and no longer uses `dep`). |
| 268 |
|
| 269 |
New Features: |
| 270 |
* [Adiantum](https://github.com/google/adiantum) support |
| 271 |
* Display encryption options in `fscrypt status DIR`. |
| 272 |
|
| 273 |
Changes to improve stability of `fscrypt`: |
| 274 |
* Ensure `fscrypt` file updates are always atomic. |
| 275 |
* Use sane defaults for newly encrypted directories. |
| 276 |
* Install PAM modules/configs correctly. |
| 277 |
|
| 278 |
The remaining changes include numerous fixes to the Documentation and CI. |
| 279 |
|
| 280 |
## Version 0.2.4 |
| 281 |
|
| 282 |
This release contains multiple bug fixes, including a fix for |
| 283 |
[CVE-2018-6558](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6558), |
| 284 |
which allowed for privilege escalation. Please update `fscrypt` as soon as |
| 285 |
possible. Debian and Ubuntu updates should be available soon. |
| 286 |
|
| 287 |
## Version 0.2.3 |
| 288 |
|
| 289 |
This small release makes `fscrypt` much easier to build and use. |
| 290 |
|
| 291 |
* `PasswordHash` has completely moved to |
| 292 |
[`x/crypto/argon2`](https://godoc.org/golang.org/x/crypto/argon2), eliminating |
| 293 |
the [`libargon2`](https://github.com/P-H-C/phc-winner-argon2) build and |
| 294 |
runtime dependency. Now the dependencies to build `fscrypt` are `go`, `make`, |
| 295 |
`gcc`, and some system headers. That's it! |
| 296 |
|
| 297 |
* `PasswordHash` will only use at most 128MiB. This allows users to encrypt |
| 298 |
files on removable media and rest assured that it will still work when plugged |
| 299 |
into another system with less memory. |
| 300 |
|
| 301 |
* `fscrypt`'s build and CI systems have been greatly improved. All dependencies |
| 302 |
are now vendored with `dep` allowing for reproducible builds. Building, |
| 303 |
testing, and changing `fscrypt` is now much more straightforward. |
| 304 |
|
| 305 |
* Other minor fixes |
| 306 |
|
| 307 |
## Version 0.2.2 |
| 308 |
|
| 309 |
This release improves the process of purging keyrings by: |
| 310 |
* Fixing a bug where keys would not be cleared on logout if the session |
| 311 |
keyring was misconfigured |
| 312 |
* Always syncing the filesystem metadata when purging keys |
| 313 |
|
| 314 |
Minor features include: |
| 315 |
* Added cryptographic algorithms from the 4.13 kernel. |
| 316 |
* Improved our Travis CI processes. |
| 317 |
|
| 318 |
Features coming in 0.3: |
| 319 |
* Major Documentation rewrite |
| 320 |
* Commands to automatically handle ext4 feature flags |
| 321 |
* UI refactoring |
| 322 |
|
| 323 |
## Version 0.2.1 |
| 324 |
|
| 325 |
See the Pull Requests and Closed Issues for more detailed information. |
| 326 |
|
| 327 |
* The PAM module now works without crashing the login process. |
| 328 |
* Keys work properly when switching between root and non-root users. |
| 329 |
* Finalized how the keys will be provisioned into the kernel keyring. |
| 330 |
|
| 331 |
## Version 0.2.0 |
| 332 |
|
| 333 |
This release introduces the PAM Module and associated documentation. |
| 334 |
|
| 335 |
It also includes numerous bug fixes. |
| 336 |
|
| 337 |
## Version 0.1.0 |
| 338 |
|
| 339 |
This is the version of `fscrypt` which was first made public on Github. |
| 340 |
|
| 341 |
The redacted commit history from internal development is maintained. |