A vulnerability in the Linux kernel's sock_confirm_neigh() function allows out-of-bounds memory access due to improper handling of socket types. Specifically, the function incorrectly treats certain sockets as full sockets, leading to a four-byte out-of-bounds read and potential zero write. This flaw has been resolved by requiring a full socket check before accessing specific socket fields, ensuring safe neighbor confirmation processing.