lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240515003204.43153-1-kuniyu@amazon.com>
Date: Wed, 15 May 2024 09:32:02 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
	<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
	<pabeni@...hat.com>
CC: Kuniyuki Iwashima <kuniyu@...zon.com>, Kuniyuki Iwashima
	<kuni1840@...il.com>, Michal Luczaj <mhal@...x.co>, <netdev@...r.kernel.org>
Subject: [PATCH v5 net 0/2] af_unix: Fix memleak and null-ptr-deref around MSG_OOB and GC.

The patch 1 fixes memleak caused by SCM_RIGHTS OOB skb sent to embryo
socket, and the patch 2 fixes null-ptr-deref caused by OOB data.


Changes:
  v5:
    * Add patch 1

  v4: https://lore.kernel.org/netdev/20240514025250.12604-1-kuniyu@amazon.com/
    * Free oob skb properly (Simon)

  v3: https://lore.kernel.org/all/20240513130628.33641-1-kuniyu@amazon.com/
    * Fix lockdep false-positive by calling kfree_skb outside of
      recvq lock (Michal)

  v2: https://lore.kernel.org/netdev/20240510093905.25510-1-kuniyu@amazon.com/
    * Add recvq locking everywhere we touch oob_skb (Paolo)

  v1: https://lore.kernel.org/netdev/20240507170018.83385-1-kuniyu@amazon.com/


Kuniyuki Iwashima (1):
  af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.

Michal Luczaj (1):
  af_unix: Fix garbage collection of embryos carrying OOB/SCM_RIGHTS.

 net/unix/af_unix.c | 28 ++++++++++++++++++++++------
 net/unix/garbage.c | 21 +++++++++++----------
 2 files changed, 33 insertions(+), 16 deletions(-)

-- 
2.30.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ