Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: Add sockaddr length checks before accessing sa_family in bind ha…
…ndlers Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in bind() handlers of the AF_NFC socket. Since the syscall doesn't enforce a minimum size of the corresponding memory region, very short sockaddrs (zero or one byte long) result in operating on uninitialized memory while referencing .sa_family. Signed-off-by: Mateusz Jurczyk <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
- Loading branch information