Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Monday March 04 2019, @03:00PM   Printer-friendly
from the hey-man,-don't-have-a-COW! dept.

A security researcher from Google's Project Zero has discovered that even though macOS' kernel, XNU, allows copy-on-write (COW) behavior in some cases, it is essential that any copied memory is not available for modifications from the source process. While COW is a resource-management technique that is not inherently flawed, it appears that Apple's implementation of it certainly is.

[...] This copy-on-write behavior works not only with anonymous memory, but also with file mappings. This means that, after the destination process has started reading from the transferred memory area, memory pressure can cause the pages holding the transferred memory to be evicted from the page cache. Later, when the evicted pages are needed again, they can be reloaded from the backing filesystem.

This means that if an attacker can mutate an on-disk file without informing the virtual management subsystem, this is a security bug. MacOS permits normal users to mount filesystem images. When a mounted filesystem image is mutated directly (e.g. by calling pwrite() on the filesystem image), this information is not propagated into the mounted filesystem.

[...] You can also view the proof-of-concept code that demonstrates the problem on the dedicated webpage here.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Monday March 04 2019, @04:06PM (1 child)

    by Anonymous Coward on Monday March 04 2019, @04:06PM (#809817)

    inb4 Apple already patched this six months ago.

  • (Score: 0) by Anonymous Coward on Monday March 04 2019, @05:09PM

    by Anonymous Coward on Monday March 04 2019, @05:09PM (#809860)

    Win XP is obviously the most secure, it doesn't need any more patches since years ago!