When a segment carrying urgent data was received, tcp_pulloutofband() removed the urgent byte by modifying the received data in place, without checking whether the underlying buffer was writable. For example, when a local sender used sendfile(2), the data could reference the cached pages of the file being sent. An unprivileged local user can exploit this to modify the cached contents of files they are only permitted to read, and thereby obtain superuser privileges.