All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: gregkh@linuxfoundation.org
Cc: Sasha Levin <sashal@kernel.org>,
	stable@vger.kernel.org, kuba@kernel.org,
	linux-hams@vger.kernel.org,
	Bernard Pidoux <bernard.f6bvp@gmail.com>
Subject: Re: [stable request] ROSE memory-safety fixes for 7.0.y and earlier (merged out-of-tree in linux-netdev/mod-orphan)
Date: Wed,  2 Dec 2026 08:48:35 -0500	[thread overview]
Message-ID: <2026-12-01-1-daily-reply-0022@kernel.org> (raw)
In-Reply-To: <CAFAa3YCiJUBSSoNNEBfRVu=SyqMYWHFe3dRLC_amtYGQnGpvJA@mail.gmail.com>

> 1. netrom: clear the choke flag on frames sent again
> 2. rose: answer a packet on a logical channel we do not know
> 3. netrom: bound the resequencing queue while we are busy
> 4. netrom: leave the busy state when the application reads
> 5. mkiss: leave the escaped state on any byte after FESC
> 6. ax25: drop data from a KISS port other than 0
> 7. ax25: leave the busy state when the application reads
> 8. rose: acknowledge delivered data before resetting a call
> 9. rose: say when we are busy, and leave the busy state on read
> 10. ax25: send the data already written before closing a connection
> 11. ax25: let the application read data that arrived before DISC
> 12. netrom: send the data already written before closing a circuit
> 13. netrom: let the application read data that arrived before DISC
> 14. rose: send the data already written before clearing a call
> 15. rose: let the application read data that arrived before CLEAR

Queued 1, 3, 4, 5, 7, 8 and 9 for 6.18 and 6.12. 6, 10, 12 and 14 stay
out, as you offered.

11, 13 and 15 need a respin: the relaxed -ENOTCONN check in recvmsg also
lets a listening socket through, so recv() on a listener with a
connection pending dequeues that connection's skb. The child socket and
its backlog slot leak, and an unprivileged local user can trigger it.
Keeping -ENOTCONN for TCP_LISTEN fixes it.

2 needs a respin too: answering a Clear Request on an unknown logical
channel with a Clear Confirmation loops without end against an
unpatched Linux ROSE neighbour that runs net.rose.routing_control=0,
because that neighbour answers every Clear Confirmation on an unknown
channel with a Clear Request.

-- 
Thanks,
Sasha

  reply	other threads:[~2026-12-02 13:49 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 17:21 [stable request] ROSE memory-safety fixes for 7.0.y and earlier (merged out-of-tree in linux-netdev/mod-orphan) Bernard Pidoux
2026-06-16  2:36 ` Greg KH
     [not found]   ` <CAFAa3YBciYSJxDT-SH=4oppyBS3hWUSEwJP_86EgUriJfYkjLw@mail.gmail.com>
     [not found]     ` <2026062048-posted-scarf-dcf2@gregkh>
2026-06-20 10:37       ` Bernard Pidoux
2026-06-20 10:51         ` Greg KH
2026-06-20 12:42           ` Bernard Pidoux
2026-06-25 11:04             ` Greg KH
     [not found]               ` <CAFAa3YAkgv9t==Xeh4hqTVCq3+hN1igwqWXPOu3gHmD54Wd2Kw@mail.gmail.com>
     [not found]                 ` <CAFAa3YBDK8_va32Zi3myUsEhwNs20xnejO49m_06xOo3z3cK2Q@mail.gmail.com>
     [not found]                   ` <2026093015-outmost-shrimp-45f8@gregkh>
2026-10-15 18:49                     ` Bernard Pidoux
2026-10-17  3:00                       ` Sasha Levin
2026-10-17 18:04                         ` Bernard Pidoux
2026-10-19 11:11                           ` Bernard Pidoux
2026-10-19 20:55                             ` Sasha Levin
2026-10-21 17:25                               ` Bernard Pidoux
2026-10-23 20:02                                 ` Sasha Levin
2026-10-24  9:53                                   ` Bernard Pidoux
2026-10-24 20:11                                     ` Sasha Levin
2026-10-25  9:41                                       ` Bernard Pidoux
2026-10-25 23:29                                         ` Sasha Levin
2026-11-09 10:30                                           ` Bernard Pidoux
2026-11-09 15:53                                             ` Sasha Levin
2026-11-16 11:17                                               ` Bernard Pidoux
2026-11-16 16:06                                                 ` [stable request] ROSE memory-safety fixes for 7.0.y and earlier (merged out-of-tree in linux-netdev/mod-orphan) - 10 more patches for 6.12.y/6.18.y Sasha Levin
2026-11-21 11:34                                                 ` [stable request] ROSE memory-safety fixes for 7.0.y and earlier (merged out-of-tree in linux-netdev/mod-orphan) Bernard Pidoux
2026-11-22  3:39                                                   ` Sasha Levin
2026-11-23 12:43                                                   ` Bernard Pidoux
2026-11-24  0:11                                                     ` Sasha Levin
2026-11-30 12:17                                                     ` Bernard Pidoux
2026-12-02 13:48                                                       ` Sasha Levin [this message]
2026-10-19 20:55                           ` Sasha Levin
2026-06-21 13:47         ` Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026-12-01-1-daily-reply-0022@kernel.org \
    --to=sashal@kernel.org \
    --cc=bernard.f6bvp@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kuba@kernel.org \
    --cc=linux-hams@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.