Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E3F03BC687 for ; Fri, 26 Jun 2026 19:42:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502932; cv=none; b=aN7Hg9IcfeTryntxEXkpIcWoY3uczu7ZQfylI17/NCLV2cWgaUCfacls1NIK/xzR62vLDIEEkTKME18dnO5EnxeCf6UNeY+lag6rqJzNab2FsniskZuB/shs5wi/U4hPjTo88VBEk2QCMlMpBGcicwuPImHYc/fi6gyDM41bQJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502932; c=relaxed/simple; bh=IHBk1AC6m0xruhbo7XtUnORFGSn4RHZ+SfaAT6YXY0I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XOSKlhi0cwBOcHMivrPcknuNWYw/yNhGr/rZXJLFWRBum7fSh+0fjgQxemt90PtRGgWBizbVK7yZmx8yzMQLAWzERl7awhfJlcjglZccpDEvxuU8ToOK2WmQDVttA7tv96dFeUR1L4++ztC7YzEBXxXirAzXKUKpxH5uq1zm114= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cuHWWd17; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cuHWWd17" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D2BD1F000E9; Fri, 26 Jun 2026 19:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782502929; bh=t1Nr0QuXuS6QvlZdrq5NEvC1dXB1m0VD2SvXhrCeRpw=; h=From:To:Cc:Subject:Date:Reply-To; b=cuHWWd17Qe4ru/urp2j0vZUkYoriJwJQC0OCBDL+rK8OtcQ2TTg2Ej1XkpVzhJb6y /9NQsQT7C9ssPKmE580mpP7iBoMjxe3okqE/GIT0egeNJfvUINVEHphwFfE/rIL2OZ dBJZUAiEE1TYeiHYy2Z0jfbUT/ZnpySuGZRvwQI0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53292: net: phonet: do not BUG_ON() in pn_socket_autobind() on failed bind Date: Fri, 26 Jun 2026 20:40:25 +0100 Message-ID: <2026062617-CVE-2026-53292-666f@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3132; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sb8x+3Lzz6uCf7qB3aHslliXsQdwlxenC4WdPW4tzLQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2VxcqC16xuWxiF/Zs7rG78hd9rs+MMVovb7FNyOv1B yHz1bPUOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi2aIMC9at1tJWOKP+Wq5x oYTb7H+BGxV9JzPMlevSO+S+wWTfhmjxt9OSF0V0Jc7wAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: phonet: do not BUG_ON() in pn_socket_autobind() on failed bind syzbot reported a kernel BUG triggered from pn_socket_sendmsg() via pn_socket_autobind(): kernel BUG at net/phonet/socket.c:213! RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] RIP: 0010:pn_socket_sendmsg+0x240/0x250 net/phonet/socket.c:421 Call Trace: sock_sendmsg_nosec+0x112/0x150 net/socket.c:797 __sock_sendmsg net/socket.c:812 [inline] __sys_sendto+0x402/0x590 net/socket.c:2280 ... pn_socket_autobind() calls pn_socket_bind() with port 0 and, on -EINVAL, assumes the socket was already bound and asserts that the port is non-zero: err = pn_socket_bind(sock, ..., sizeof(struct sockaddr_pn)); if (err != -EINVAL) return err; BUG_ON(!pn_port(pn_sk(sock->sk)->sobject)); return 0; /* socket was already bound */ However pn_socket_bind() also returns -EINVAL when sk->sk_state is not TCP_CLOSE, even when the socket has never been bound and pn_port() is still 0. In that case the BUG_ON() fires and panics the kernel from a user-triggerable path. Treat the "bind returned -EINVAL but pn_port() is still 0" case as a regular error and propagate -EINVAL to the caller instead of crashing. Existing callers already translate a non-zero return from pn_socket_autobind() into -ENOBUFS/-EAGAIN, so returning -EINVAL here only changes behaviour from panic to a normal errno. The Linux kernel CVE team has assigned CVE-2026-53292 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.28 with commit ba113a94b7503ee23ffe819e7045134b0c1d31de and fixed in 7.0.10 with commit 6db58ee730bf434d1afca91b91826e26688856ed Issue introduced in 2.6.28 with commit ba113a94b7503ee23ffe819e7045134b0c1d31de and fixed in 7.1 with commit 5b0c911bcdbd982f7748d11c0b39ec5808eae2de Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53292 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/phonet/socket.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6db58ee730bf434d1afca91b91826e26688856ed https://git.kernel.org/stable/c/5b0c911bcdbd982f7748d11c0b39ec5808eae2de