public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
       [not found] <2024030252-CVE-2023-52560-c3de@gregkh>
@ 2024-03-05 16:51 ` Michal Hocko
  2024-03-05 22:25   ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Hocko @ 2024-03-05 16:51 UTC (permalink / raw)
  To: cve, linux-kernel; +Cc: Greg Kroah-Hartman

On Sat 02-03-24 22:59:54, Greg KH wrote:
> Description
> ===========
> 
> In the Linux kernel, the following vulnerability has been resolved:
> 
> mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
> 
> When CONFIG_DAMON_VADDR_KUNIT_TEST=y and making CONFIG_DEBUG_KMEMLEAK=y
> and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the below memory leak is detected.

This is a kunit test case AFAICS. Is this really a CVE material?
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
  2024-03-05 16:51 ` CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions() Michal Hocko
@ 2024-03-05 22:25   ` Greg Kroah-Hartman
  2024-03-06  7:49     ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-03-05 22:25 UTC (permalink / raw)
  To: Michal Hocko; +Cc: cve, linux-kernel

On Tue, Mar 05, 2024 at 05:51:11PM +0100, Michal Hocko wrote:
> On Sat 02-03-24 22:59:54, Greg KH wrote:
> > Description
> > ===========
> > 
> > In the Linux kernel, the following vulnerability has been resolved:
> > 
> > mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
> > 
> > When CONFIG_DAMON_VADDR_KUNIT_TEST=y and making CONFIG_DEBUG_KMEMLEAK=y
> > and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the below memory leak is detected.
> 
> This is a kunit test case AFAICS. Is this really a CVE material?

People run kunit tests on real systems (again, we do not dictate use
cases.)  So yes, fixing a memory leak that can be triggered is resolving
a weakness and so should get a CVE I would think, right?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
  2024-03-05 22:25   ` Greg Kroah-Hartman
@ 2024-03-06  7:49     ` Michal Hocko
  2024-03-06  8:42       ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Hocko @ 2024-03-06  7:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: cve, linux-kernel

On Tue 05-03-24 22:25:11, Greg KH wrote:
> On Tue, Mar 05, 2024 at 05:51:11PM +0100, Michal Hocko wrote:
> > On Sat 02-03-24 22:59:54, Greg KH wrote:
> > > Description
> > > ===========
> > > 
> > > In the Linux kernel, the following vulnerability has been resolved:
> > > 
> > > mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
> > > 
> > > When CONFIG_DAMON_VADDR_KUNIT_TEST=y and making CONFIG_DEBUG_KMEMLEAK=y
> > > and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the below memory leak is detected.
> > 
> > This is a kunit test case AFAICS. Is this really a CVE material?
> 
> People run kunit tests on real systems (again, we do not dictate use
> cases.)  So yes, fixing a memory leak that can be triggered is resolving
> a weakness and so should get a CVE I would think, right?

This is stretching the meaning of CVE beyond my imagination. Up to you
to decide but I yet have to see a real production system that casually
runs unit test just for <looking for a reason .... but failed>.
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
  2024-03-06  7:49     ` Michal Hocko
@ 2024-03-06  8:42       ` Greg Kroah-Hartman
  2024-03-06  8:56         ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-03-06  8:42 UTC (permalink / raw)
  To: Michal Hocko; +Cc: cve, linux-kernel

On Wed, Mar 06, 2024 at 08:49:42AM +0100, Michal Hocko wrote:
> On Tue 05-03-24 22:25:11, Greg KH wrote:
> > On Tue, Mar 05, 2024 at 05:51:11PM +0100, Michal Hocko wrote:
> > > On Sat 02-03-24 22:59:54, Greg KH wrote:
> > > > Description
> > > > ===========
> > > > 
> > > > In the Linux kernel, the following vulnerability has been resolved:
> > > > 
> > > > mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
> > > > 
> > > > When CONFIG_DAMON_VADDR_KUNIT_TEST=y and making CONFIG_DEBUG_KMEMLEAK=y
> > > > and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the below memory leak is detected.
> > > 
> > > This is a kunit test case AFAICS. Is this really a CVE material?
> > 
> > People run kunit tests on real systems (again, we do not dictate use
> > cases.)  So yes, fixing a memory leak that can be triggered is resolving
> > a weakness and so should get a CVE I would think, right?
> 
> This is stretching the meaning of CVE beyond my imagination. Up to you
> to decide but I yet have to see a real production system that casually
> runs unit test just for <looking for a reason .... but failed>.

I know of at least one place that uses kunit tests in "production", and
I know of more that will be enabling them in newer releases, so this is
a real thing.  Again, we just mark "fixes for a weakness" as a CVE and
let others decide what to do with it.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
  2024-03-06  8:42       ` Greg Kroah-Hartman
@ 2024-03-06  8:56         ` Michal Hocko
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Hocko @ 2024-03-06  8:56 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: cve, linux-kernel

On Wed 06-03-24 08:42:07, Greg KH wrote:
> On Wed, Mar 06, 2024 at 08:49:42AM +0100, Michal Hocko wrote:
> > On Tue 05-03-24 22:25:11, Greg KH wrote:
> > > On Tue, Mar 05, 2024 at 05:51:11PM +0100, Michal Hocko wrote:
> > > > On Sat 02-03-24 22:59:54, Greg KH wrote:
> > > > > Description
> > > > > ===========
> > > > > 
> > > > > In the Linux kernel, the following vulnerability has been resolved:
> > > > > 
> > > > > mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions()
> > > > > 
> > > > > When CONFIG_DAMON_VADDR_KUNIT_TEST=y and making CONFIG_DEBUG_KMEMLEAK=y
> > > > > and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the below memory leak is detected.
> > > > 
> > > > This is a kunit test case AFAICS. Is this really a CVE material?
> > > 
> > > People run kunit tests on real systems (again, we do not dictate use
> > > cases.)  So yes, fixing a memory leak that can be triggered is resolving
> > > a weakness and so should get a CVE I would think, right?
> > 
> > This is stretching the meaning of CVE beyond my imagination. Up to you
> > to decide but I yet have to see a real production system that casually
> > runs unit test just for <looking for a reason .... but failed>.
> 
> I know of at least one place that uses kunit tests in "production", and
> I know of more that will be enabling them in newer releases, so this is
> a real thing.

I would be really curious to hear more details.

> Again, we just mark "fixes for a weakness" as a CVE and
> let others decide what to do with it.

OK, this is something we have discussed and concluded to disagree. Not
my call though but I would really like to hear _who_ outside of the stable
tree userbase is really appreciating this approach.
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-06  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2024030252-CVE-2023-52560-c3de@gregkh>
2024-03-05 16:51 ` CVE-2023-52560: mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions() Michal Hocko
2024-03-05 22:25   ` Greg Kroah-Hartman
2024-03-06  7:49     ` Michal Hocko
2024-03-06  8:42       ` Greg Kroah-Hartman
2024-03-06  8:56         ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox