* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
[not found] <2024041702-CVE-2024-26821-de6b@gregkh>
@ 2024-05-14 12:49 ` Anthony Iliopoulos
2024-05-15 16:58 ` Christian Brauner
2024-05-23 13:56 ` Greg Kroah-Hartman
0 siblings, 2 replies; 6+ messages in thread
From: Anthony Iliopoulos @ 2024-05-14 12:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, Christian Brauner, cve, linux-kernel
Cc: linux-cve-announce
On Wed, Apr 17, 2024 at 11:44:04AM +0200, Greg Kroah-Hartman wrote:
> Description
> ===========
>
> In the Linux kernel, the following vulnerability has been resolved:
>
> fs: relax mount_setattr() permission checks
>
> When we added mount_setattr() I added additional checks compared to the
> legacy do_reconfigure_mnt() and do_change_type() helpers used by regular
> mount(2). If that mount had a parent then verify that the caller and the
> mount namespace the mount is attached to match and if not make sure that
> it's an anonymous mount.
>
> The real rootfs falls into neither category. It is neither an anoymous
> mount because it is obviously attached to the initial mount namespace
> but it also obviously doesn't have a parent mount. So that means legacy
> mount(2) allows changing mount properties on the real rootfs but
> mount_setattr(2) blocks this. I never thought much about this but of
> course someone on this planet of earth changes properties on the real
> rootfs as can be seen in [1].
>
> Since util-linux finally switched to the new mount api in 2.39 not so
> long ago it also relies on mount_setattr() and that surfaced this issue
> when Fedora 39 finally switched to it. Fix this.
>
> The Linux kernel CVE team has assigned CVE-2024-26821 to this issue.
This one probably needs to be disputed as it isn't an actual
vulnerability, but rather a fix for the mount_setattr which previously
didn't allow reconfiguring the real rootfs similar to what the mount
syscall always allowed to do.
So it merely brings mount_attr up to par with mount in terms of allowing
the real rootfs to be reconfigured.
Christian, what do you think ?
Regards,
Anthony
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
2024-05-14 12:49 ` CVE-2024-26821: fs: relax mount_setattr() permission checks Anthony Iliopoulos
@ 2024-05-15 16:58 ` Christian Brauner
2024-05-16 12:23 ` Greg Kroah-Hartman
2024-05-23 13:56 ` Greg Kroah-Hartman
1 sibling, 1 reply; 6+ messages in thread
From: Christian Brauner @ 2024-05-15 16:58 UTC (permalink / raw)
To: Anthony Iliopoulos
Cc: Greg Kroah-Hartman, cve, linux-kernel, linux-cve-announce
On Tue, May 14, 2024 at 02:49:39PM +0200, Anthony Iliopoulos wrote:
> On Wed, Apr 17, 2024 at 11:44:04AM +0200, Greg Kroah-Hartman wrote:
> > Description
> > ===========
> >
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > fs: relax mount_setattr() permission checks
> >
> > When we added mount_setattr() I added additional checks compared to the
> > legacy do_reconfigure_mnt() and do_change_type() helpers used by regular
> > mount(2). If that mount had a parent then verify that the caller and the
> > mount namespace the mount is attached to match and if not make sure that
> > it's an anonymous mount.
> >
> > The real rootfs falls into neither category. It is neither an anoymous
> > mount because it is obviously attached to the initial mount namespace
> > but it also obviously doesn't have a parent mount. So that means legacy
> > mount(2) allows changing mount properties on the real rootfs but
> > mount_setattr(2) blocks this. I never thought much about this but of
> > course someone on this planet of earth changes properties on the real
> > rootfs as can be seen in [1].
> >
> > Since util-linux finally switched to the new mount api in 2.39 not so
> > long ago it also relies on mount_setattr() and that surfaced this issue
> > when Fedora 39 finally switched to it. Fix this.
> >
> > The Linux kernel CVE team has assigned CVE-2024-26821 to this issue.
>
> This one probably needs to be disputed as it isn't an actual
> vulnerability, but rather a fix for the mount_setattr which previously
> didn't allow reconfiguring the real rootfs similar to what the mount
> syscall always allowed to do.
>
> So it merely brings mount_attr up to par with mount in terms of allowing
> the real rootfs to be reconfigured.
>
> Christian, what do you think ?
Yeah, it's not security related at all. It just allows _additional_
functionality. Not sure how that ended up on the CVE list. Thanks for
pinging about this!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
2024-05-15 16:58 ` Christian Brauner
@ 2024-05-16 12:23 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-05-16 12:23 UTC (permalink / raw)
To: Christian Brauner
Cc: Anthony Iliopoulos, cve, linux-kernel, linux-cve-announce
On Wed, May 15, 2024 at 06:58:38PM +0200, Christian Brauner wrote:
> On Tue, May 14, 2024 at 02:49:39PM +0200, Anthony Iliopoulos wrote:
> > On Wed, Apr 17, 2024 at 11:44:04AM +0200, Greg Kroah-Hartman wrote:
> > > Description
> > > ===========
> > >
> > > In the Linux kernel, the following vulnerability has been resolved:
> > >
> > > fs: relax mount_setattr() permission checks
> > >
> > > When we added mount_setattr() I added additional checks compared to the
> > > legacy do_reconfigure_mnt() and do_change_type() helpers used by regular
> > > mount(2). If that mount had a parent then verify that the caller and the
> > > mount namespace the mount is attached to match and if not make sure that
> > > it's an anonymous mount.
> > >
> > > The real rootfs falls into neither category. It is neither an anoymous
> > > mount because it is obviously attached to the initial mount namespace
> > > but it also obviously doesn't have a parent mount. So that means legacy
> > > mount(2) allows changing mount properties on the real rootfs but
> > > mount_setattr(2) blocks this. I never thought much about this but of
> > > course someone on this planet of earth changes properties on the real
> > > rootfs as can be seen in [1].
> > >
> > > Since util-linux finally switched to the new mount api in 2.39 not so
> > > long ago it also relies on mount_setattr() and that surfaced this issue
> > > when Fedora 39 finally switched to it. Fix this.
> > >
> > > The Linux kernel CVE team has assigned CVE-2024-26821 to this issue.
> >
> > This one probably needs to be disputed as it isn't an actual
> > vulnerability, but rather a fix for the mount_setattr which previously
> > didn't allow reconfiguring the real rootfs similar to what the mount
> > syscall always allowed to do.
> >
> > So it merely brings mount_attr up to par with mount in terms of allowing
> > the real rootfs to be reconfigured.
> >
> > Christian, what do you think ?
>
> Yeah, it's not security related at all. It just allows _additional_
> functionality. Not sure how that ended up on the CVE list. Thanks for
> pinging about this!
Now rejected, thanks all for reviewing this and letting us know.
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
2024-05-14 12:49 ` CVE-2024-26821: fs: relax mount_setattr() permission checks Anthony Iliopoulos
2024-05-15 16:58 ` Christian Brauner
@ 2024-05-23 13:56 ` Greg Kroah-Hartman
2024-05-24 13:16 ` Christian Brauner
1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-05-23 13:56 UTC (permalink / raw)
To: Anthony Iliopoulos
Cc: Christian Brauner, cve, linux-kernel, linux-cve-announce
On Tue, May 14, 2024 at 02:49:39PM +0200, Anthony Iliopoulos wrote:
> On Wed, Apr 17, 2024 at 11:44:04AM +0200, Greg Kroah-Hartman wrote:
> > Description
> > ===========
> >
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > fs: relax mount_setattr() permission checks
> >
> > When we added mount_setattr() I added additional checks compared to the
> > legacy do_reconfigure_mnt() and do_change_type() helpers used by regular
> > mount(2). If that mount had a parent then verify that the caller and the
> > mount namespace the mount is attached to match and if not make sure that
> > it's an anonymous mount.
> >
> > The real rootfs falls into neither category. It is neither an anoymous
> > mount because it is obviously attached to the initial mount namespace
> > but it also obviously doesn't have a parent mount. So that means legacy
> > mount(2) allows changing mount properties on the real rootfs but
> > mount_setattr(2) blocks this. I never thought much about this but of
> > course someone on this planet of earth changes properties on the real
> > rootfs as can be seen in [1].
> >
> > Since util-linux finally switched to the new mount api in 2.39 not so
> > long ago it also relies on mount_setattr() and that surfaced this issue
> > when Fedora 39 finally switched to it. Fix this.
> >
> > The Linux kernel CVE team has assigned CVE-2024-26821 to this issue.
>
> This one probably needs to be disputed as it isn't an actual
> vulnerability, but rather a fix for the mount_setattr which previously
> didn't allow reconfiguring the real rootfs similar to what the mount
> syscall always allowed to do.
>
> So it merely brings mount_attr up to par with mount in terms of allowing
> the real rootfs to be reconfigured.
Yes, it fixes a problem where the system could not be booted
properly without this fix.
> Christian, what do you think ?
I'll defer to Christian if this CVE should be revoked or not.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
2024-05-23 13:56 ` Greg Kroah-Hartman
@ 2024-05-24 13:16 ` Christian Brauner
2024-05-24 15:17 ` Greg Kroah-Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Christian Brauner @ 2024-05-24 13:16 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Anthony Iliopoulos, cve, linux-kernel, linux-cve-announce
> I'll defer to Christian if this CVE should be revoked or not.
As per my other mail, this really isn't a CVE.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: CVE-2024-26821: fs: relax mount_setattr() permission checks
2024-05-24 13:16 ` Christian Brauner
@ 2024-05-24 15:17 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-05-24 15:17 UTC (permalink / raw)
To: Christian Brauner
Cc: Anthony Iliopoulos, cve, linux-kernel, linux-cve-announce
On Fri, May 24, 2024 at 03:16:07PM +0200, Christian Brauner wrote:
> > I'll defer to Christian if this CVE should be revoked or not.
>
> As per my other mail, this really isn't a CVE.
>
Ah, yeah, this was rejected over a week ago.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-05-24 15:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2024041702-CVE-2024-26821-de6b@gregkh>
2024-05-14 12:49 ` CVE-2024-26821: fs: relax mount_setattr() permission checks Anthony Iliopoulos
2024-05-15 16:58 ` Christian Brauner
2024-05-16 12:23 ` Greg Kroah-Hartman
2024-05-23 13:56 ` Greg Kroah-Hartman
2024-05-24 13:16 ` Christian Brauner
2024-05-24 15:17 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox