Skip to content

Release 0.8.2

Latest

Choose a tag to compare

@iustin iustin released this 04 Dec 12:46
v0.8.2

Security release, fixing a heap buffer over-read (GHSA-654c-pch2-4pcx):

  • If an extended attribute changed between empty and non-empty (by another process) while it was being read, get, get_all, list and the deprecated getxattr/listxattr could return heap memory of the calling process as the attribute value or as attribute names. A local user could use this to obtain memory of a more privileged process reading xattrs on that user's files, e.g. a backup tool running as root. All previous versions are affected.
  • The fix makes the read buffer only ever grow and bounds the number of retries, which also prevents a concurrently changing attribute from keeping the read loop going indefinitely.

This release contains only this fix on top of 0.8.1; the patch also applies cleanly to the 0.6.x and 0.7.x releases.