* Re: CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot [not found] <2024041738-CVE-2024-26920-a681@gregkh> @ 2024-04-18 11:59 ` Siddh Raman Pant 2024-04-18 12:34 ` gregkh 0 siblings, 1 reply; 5+ messages in thread From: Siddh Raman Pant @ 2024-04-18 11:59 UTC (permalink / raw) To: gregkh; +Cc: cve, linux-cve-announce, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1115 bytes --] Hi Greg, > In the Linux kernel, the following vulnerability has been resolved: > > tracing/trigger: Fix to return error if failed to alloc snapshot > > Fix register_snapshot_trigger() to return error code if it failed to > allocate a snapshot instead of 0 (success). Unless that, it will register > snapshot trigger without an error. This commit is problematic on 4.19.y, 5.4.y, 5.10.y, and 5.15.y, and should be reversed, and this CVE should be rejected for those versions. The return value should be 0 on failure, because in the functions event_trigger_callback() and event_enable_trigger_func(), we have: ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); /* * The above returns on success the # of functions enabled, * but if it didn't find any functions it returns zero. * Consider no functions a failure too. */ if (!ret) { ret = -ENOENT; Thus, the commit breaks this assumption. This commit needs b8cc44a4d3c1 ("tracing: Remove logic for registering multiple event triggers at a time") as a prerequisite, as it removes the above. Thanks, Siddh [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot 2024-04-18 11:59 ` CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot Siddh Raman Pant @ 2024-04-18 12:34 ` gregkh 2024-04-18 13:06 ` [External] : " Siddh Raman Pant 0 siblings, 1 reply; 5+ messages in thread From: gregkh @ 2024-04-18 12:34 UTC (permalink / raw) To: Siddh Raman Pant; +Cc: cve, linux-cve-announce, linux-kernel On Thu, Apr 18, 2024 at 11:59:41AM +0000, Siddh Raman Pant wrote: > Hi Greg, > > > In the Linux kernel, the following vulnerability has been resolved: > > > > tracing/trigger: Fix to return error if failed to alloc snapshot > > > > Fix register_snapshot_trigger() to return error code if it failed to > > allocate a snapshot instead of 0 (success). Unless that, it will register > > snapshot trigger without an error. > > This commit is problematic on 4.19.y, 5.4.y, 5.10.y, and 5.15.y, > and should be reversed, and this CVE should be rejected for those > versions. Then please submit a patch for this. But note, CVEs are not for specific versions, sorry. We give a hint as to what kernel versions might be affected, but we don not assign CVE to versions. > > The return value should be 0 on failure, because in the functions > event_trigger_callback() and event_enable_trigger_func(), we have: > > ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); > /* > * The above returns on success the # of functions enabled, > * but if it didn't find any functions it returns zero. > * Consider no functions a failure too. > */ > if (!ret) { > ret = -ENOENT; > > Thus, the commit breaks this assumption. > > This commit needs b8cc44a4d3c1 ("tracing: Remove logic for registering > multiple event triggers at a time") as a prerequisite, as it removes > the above. Should we just take that patch instead? thanks, greg k-h ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [External] : Re: CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot 2024-04-18 12:34 ` gregkh @ 2024-04-18 13:06 ` Siddh Raman Pant 2024-04-18 13:13 ` gregkh 0 siblings, 1 reply; 5+ messages in thread From: Siddh Raman Pant @ 2024-04-18 13:06 UTC (permalink / raw) To: gregkh; +Cc: cve, linux-cve-announce, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2019 bytes --] On Thu, Apr 18 2024 at 14:34:57 +0200, gregkh@linuxfoundation.org wrote: > On Thu, Apr 18, 2024 at 11:59:41AM +0000, Siddh Raman Pant wrote: > > Hi Greg, > > > > > In the Linux kernel, the following vulnerability has been resolved: > > > > > > tracing/trigger: Fix to return error if failed to alloc snapshot > > > > > > Fix register_snapshot_trigger() to return error code if it failed to > > > allocate a snapshot instead of 0 (success). Unless that, it will register > > > snapshot trigger without an error. > > > > This commit is problematic on 4.19.y, 5.4.y, 5.10.y, and 5.15.y, > > and should be reversed, and this CVE should be rejected for those > > versions. > > Then please submit a patch for this. Sure. > But note, CVEs are not for specific versions, sorry. We give a hint as > to what kernel versions might be affected, but we don not assign CVE to > versions. Cool. > > > > The return value should be 0 on failure, because in the functions > > event_trigger_callback() and event_enable_trigger_func(), we have: > > > > ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); > > /* > > * The above returns on success the # of functions enabled, > > * but if it didn't find any functions it returns zero. > > * Consider no functions a failure too. > > */ > > if (!ret) { > > ret = -ENOENT; > > > > Thus, the commit breaks this assumption. > > > > This commit needs b8cc44a4d3c1 ("tracing: Remove logic for registering > > multiple event triggers at a time") as a prerequisite, as it removes > > the above. > > Should we just take that patch instead? The series in which the patch is posted is here: - https://lore.kernel.org/lkml/cover.1644010575.git.zanussi@kernel.org/ - https://lore.kernel.org/lkml/cover.1641823001.git.zanussi@kernel.org/ Seems like some good tracing subsystem refactoring. So if I understand Documentation/process/stable-kernel-rules.rst correctly, I would say we should not. Thanks, Siddh [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [External] : Re: CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot 2024-04-18 13:06 ` [External] : " Siddh Raman Pant @ 2024-04-18 13:13 ` gregkh 2024-04-19 8:23 ` Siddh Raman Pant 0 siblings, 1 reply; 5+ messages in thread From: gregkh @ 2024-04-18 13:13 UTC (permalink / raw) To: Siddh Raman Pant; +Cc: cve, linux-cve-announce, linux-kernel On Thu, Apr 18, 2024 at 01:06:42PM +0000, Siddh Raman Pant wrote: > On Thu, Apr 18 2024 at 14:34:57 +0200, gregkh@linuxfoundation.org > wrote: > > On Thu, Apr 18, 2024 at 11:59:41AM +0000, Siddh Raman Pant wrote: > > > Hi Greg, > > > > > > > In the Linux kernel, the following vulnerability has been resolved: > > > > > > > > tracing/trigger: Fix to return error if failed to alloc snapshot > > > > > > > > Fix register_snapshot_trigger() to return error code if it failed to > > > > allocate a snapshot instead of 0 (success). Unless that, it will register > > > > snapshot trigger without an error. > > > > > > This commit is problematic on 4.19.y, 5.4.y, 5.10.y, and 5.15.y, > > > and should be reversed, and this CVE should be rejected for those > > > versions. > > > > Then please submit a patch for this. > > Sure. > > > > But note, CVEs are not for specific versions, sorry. We give a hint as > > to what kernel versions might be affected, but we don not assign CVE to > > versions. > > Cool. > > > > > > > The return value should be 0 on failure, because in the functions > > > event_trigger_callback() and event_enable_trigger_func(), we have: > > > > > > ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); > > > /* > > > * The above returns on success the # of functions enabled, > > > * but if it didn't find any functions it returns zero. > > > * Consider no functions a failure too. > > > */ > > > if (!ret) { > > > ret = -ENOENT; > > > > > > Thus, the commit breaks this assumption. > > > > > > This commit needs b8cc44a4d3c1 ("tracing: Remove logic for registering > > > multiple event triggers at a time") as a prerequisite, as it removes > > > the above. > > > > Should we just take that patch instead? > > The series in which the patch is posted is here: > - https://lore.kernel.org/lkml/cover.1644010575.git.zanussi@kernel.org/ > - https://lore.kernel.org/lkml/cover.1641823001.git.zanussi@kernel.org/ > > Seems like some good tracing subsystem refactoring. So if I understand > Documentation/process/stable-kernel-rules.rst correctly, I would say we > should not. So the documentation on the commit here is wrong (i.e. wrong Fixes: tag?) If so, that needs to be said somewhere... thanks, greg k-h ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [External] : Re: CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot 2024-04-18 13:13 ` gregkh @ 2024-04-19 8:23 ` Siddh Raman Pant 0 siblings, 0 replies; 5+ messages in thread From: Siddh Raman Pant @ 2024-04-19 8:23 UTC (permalink / raw) To: gregkh; +Cc: cve, linux-cve-announce, linux-kernel [-- Attachment #1: Type: text/plain, Size: 555 bytes --] On Thu, Apr 18 2024 at 15:13:40 +0200, gregkh@linuxfoundation.org wrote: > > > Should we just take that patch instead? > > > > The series in which the patch is posted is here: > > [...] > > > > Seems like some good tracing subsystem refactoring. So if I understand > > Documentation/process/stable-kernel-rules.rst correctly, I would say we > > should not. > > So the documentation on the commit here is wrong (i.e. wrong Fixes: > tag?) If so, that needs to be said somewhere... Yes, the Fixes tag seems to be wrong. Thanks, Siddh [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-19 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <2024041738-CVE-2024-26920-a681@gregkh>
2024-04-18 11:59 ` CVE-2024-26920: tracing/trigger: Fix to return error if failed to alloc snapshot Siddh Raman Pant
2024-04-18 12:34 ` gregkh
2024-04-18 13:06 ` [External] : " Siddh Raman Pant
2024-04-18 13:13 ` gregkh
2024-04-19 8:23 ` Siddh Raman Pant
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®