CVE-2023-52451: powerpc/pseries/memhp: Fix access beyond end of drmem array
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index() may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);
This was found by inspection and confirmed with KASAN:
pseries-hotplug-mem: Attempting to hot-remove LMB, drc index 1234
==================================================================
BUG: KASAN: slab-out-of-bounds in dlpar_memory+0x298/0x1658 Read of size 8 at addr c000000364e97fd0 by task bash/949 dump_stack_lvl+0xa4/0xfc (unreliable) print_report+0x214/0x63c kasan_report+0x140/0x2e0 __asan_load8+0xa8/0xe0 dlpar_memory+0x298/0x1658 handle_dlpar_errorlog+0x130/0x1d0 dlpar_store+0x18c/0x3e0 kobj_attr_store+0x68/0xa0 sysfs_kf_write+0xc4/0x110 kernfs_fop_write_iter+0x26c/0x390 vfs_write+0x2d4/0x4e0 ksys_write+0xac/0x1a0 system_call_exception+0x268/0x530 system_call_vectored_common+0x15c/0x2ec Allocated by task 1: kasan_save_stack+0x48/0x80 kasan_set_track+0x34/0x50 kasan_save_alloc_info+0x34/0x50 __kasan_kmalloc+0xd0/0x120 __kmalloc+0x8c/0x320 kmalloc_array.constprop.0+0x48/0x5c drmem_init+0x2a0/0x41c do_one_initcall+0xe0/0x5c0 kernel_init_freeable+0x4ec/0x5a0 kernel_init+0x30/0x1e0 ret_from_kernel_user_thread+0x14/0x1c The buggy address belongs to the object at c000000364e80000 which belongs to the cache kmalloc-128k of size 131072 The buggy address is located 0 bytes to the right of allocated 98256-byte region [c000000364e80000, c000000364e97fd0)
==================================================================
pseries-hotplug-mem: Failed to hot-remove memory at 0
Log failed lookups with a separate message and dereference the cursor only when it points to a valid entry.
The Linux kernel CVE team has assigned CVE-2023-52451 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 4.19.306 with commit bb79613a9a70 Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 5.4.268 with commit 9b5f03500bc5 Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 5.10.209 with commit b582aa1f6641 Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 5.15.148 with commit 999a27b3ce9a Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 6.1.75 with commit 026fd977dc50 Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 6.6.14 with commit df16afba2378 Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 6.7.2 with commit 708a4b59baad Issue introduced in 4.1 with commit 51925fb3c5c9 and fixed in 6.8-rc1 with commit bd68ffce69f6
Please see https://www.kernel.org or 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-2023-52451
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:
arch/powerpc/platforms/pseries/hotplug-memory.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/bb79613a9a704469ddb8d6c6029d532a5cea384c https://git.kernel.org/stable/c/9b5f03500bc5b083c0df696d7dd169d7ef3dd0c7 https://git.kernel.org/stable/c/b582aa1f66411d4adcc1aa55b8c575683fb4687e https://git.kernel.org/stable/c/999a27b3ce9a69d54ccd5db000ec3a447bc43e6d https://git.kernel.org/stable/c/026fd977dc50ff4a5e09bfb0603557f104d3f3a0 https://git.kernel.org/stable/c/df16afba2378d985359812c865a15c05c70a967e https://git.kernel.org/stable/c/708a4b59baad96c4718dc0bd3a3427d3ab22fedc https://git.kernel.org/stable/c/bd68ffce69f6cf8ddd3a3c32549d1d2275e49fc5
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);
While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:
Quoted 6 lines
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
thanks,
greg k-h
Quoted 23 lines · Greg KH
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:Quoted 6 lines
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Quoted 5 lines
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
Does that mean that any potentially incorrect input provided by an admin is considered CVE now? I guess we would need to ban interfaces like /dev/mem and many others.
Quoted 3 lines
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
I have explicitly said, the fix is reasonable. I just do not see a point to mark it as CVE. I fail to see any thread model where this would matter as it would require untrusted privileged actor to trigger it AFAICS. I am happy to be proven wrong here.
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 30 lines · Michal Hocko
Quoted 23 lines · Greg KH
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:Quoted 6 lines
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Quoted 5 lines
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
Quoted 3 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now? I guess we would need to ban interfaces like
/dev/memand many others.
If you have your system set up to prevent admins from accessing /dev/mem (isn't there a config option for that), and you can access it, then yes, that would be a CVE-worthy issue.
But if you configure your system to allow an admin access to /dev/mem then you wanted that :)
Quoted 8 lines
Quoted 3 lines
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
I have explicitly said, the fix is reasonable. I just do not see a point to mark it as CVE. I fail to see any thread model where this would matter as it would require untrusted privileged actor to trigger it AFAICS. I am happy to be proven wrong here.
We can not determine threat models when filing CVEs as we do not know what your threat model is. All we can do is determine if this resolves a weakness in the system. A use-after-free is a weakness and this resolves that issue.
It is up to others to "grade" the CVEs if they want to. There are loads of other orginizations that do that type of thing, taking into consideration specific threat models by which they wish to enforce. If your orginization thinks this is not relevent to your threat model at all, wonderful, you can ignore it :)
thanks,
greg k-h
Quoted 35 lines · Greg KH
Quoted 30 lines · Michal Hocko
Quoted 23 lines · Greg KH
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:Quoted 6 lines
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Quoted 5 lines
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
Quoted 3 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now? I guess we would need to ban interfaces like
/dev/memand many others.
Quoted 6 lines
If you have your system set up to prevent admins from accessing
/dev/mem(isn't there a config option for that), and you can access it, then yes, that would be a CVE-worthy issue.But if you configure your system to allow an admin access to
/dev/memthen you wanted that :)
OK, I thought we are having a serious discussion here. Now I am not really sure about that.
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
I have explicitly said, the fix is reasonable. I just do not see a point to mark it as CVE. I fail to see any thread model where this would matter as it would require untrusted privileged actor to trigger it AFAICS. I am happy to be proven wrong here.
Quoted 4 lines
We can not determine threat models when filing CVEs as we do not know what your threat model is. All we can do is determine if this resolves a weakness in the system. A use-after-free is a weakness and this resolves that issue.
Sure, you cannot make any assumptions and nobody questions that. We do have a certain common sense though. And if somebody comes up with a usecase that we haven't anticipated then we can surely assign a CVE. I though that level of control is exactly the reason to own the process by the community.
All that being said I dispute the issue fixed here has any more security relevance than allowing untrusted user to control memory hotplug which could easily result in DoS of the system.
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 40 lines · Michal Hocko
Quoted 39 lines · Greg KH
Quoted 30 lines · Michal Hocko
Quoted 23 lines · Greg KH
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:Quoted 6 lines
Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Quoted 5 lines
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
Quoted 3 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now? I guess we would need to ban interfaces like
/dev/memand many others.If you have your system set up to prevent admins from accessing
/dev/mem(isn't there a config option for that), and you can access it, then yes, that would be a CVE-worthy issue.
Quoted 5 lines
Quoted 2 lines
But if you configure your system to allow an admin access to
/dev/memthen you wanted that :)OK, I thought we are having a serious discussion here. Now I am not really sure about that.
I am serious, sorry if that came across as not.
Quoted 20 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
I have explicitly said, the fix is reasonable. I just do not see a point to mark it as CVE. I fail to see any thread model where this would matter as it would require untrusted privileged actor to trigger it AFAICS. I am happy to be proven wrong here.
Quoted 4 lines
We can not determine threat models when filing CVEs as we do not know what your threat model is. All we can do is determine if this resolves a weakness in the system. A use-after-free is a weakness and this resolves that issue.
Sure, you cannot make any assumptions and nobody questions that. We do have a certain common sense though. And if somebody comes up with a usecase that we haven't anticipated then we can surely assign a CVE. I though that level of control is exactly the reason to own the process by the community.
Quoted 3 lines
All that being said I dispute the issue fixed here has any more security relevance than allowing untrusted user to control memory hotplug which could easily result in DoS of the system.
Ok, I traced this call back, and here is the callpath, starting with a write to the the 'dlpar' sysfs file (conviently NOT documented in Documentation/ABI, and it looks like it violates the "one value per file" rule...)
dlpar_store()
handle_dlpar_errorlog()
dlpar_memory()
dlpar_memory_remove_by_index()
Yes, the kernel by default sets 'dlpar' to 0644, BUT that means that root in a container can cause this use-after-free to happen, or if the permissions are changed by userspace, or if you are in "lockdown mode", or if you want to attempt the crazy "confidential computing" model, or if you have a system which root is possible for some things by normal users (there are lots of different security models out there...)
Yes, I will argue that making the sysfs file writable by userspace is out of our control, but what is in our control is the fact that there is a out-of-bounds write that is fixed here, and we don't want those to be able to be triggered by anyone as that is a weakness in our codebase. That is what has caused the CVE to be created here, not the fact that root can remove memory as that's the normal expected operation to have happen here.
However if the maintainer of the code here disputes this, we are more than willing to mark this invalid and reject the CVE.
thanks,
greg k-h
[Let me add Michael as PPC maintainer - the thread starts with
http://lkml.kernel.org/r/2024022257-CVE-2023-52451-7bdb@gregkh]
Quoted 1 line · Greg KH
On Mon, Feb 26, 2024 at 05:36:57PM +0100, Michal Hocko wrote:
[...]
Quoted 13 lines
Quoted 3 lines
All that being said I dispute the issue fixed here has any more security relevance than allowing untrusted user to control memory hotplug which could easily result in DoS of the system.
Ok, I traced this call back, and here is the callpath, starting with a write to the the 'dlpar' sysfs file (conviently NOT documented in
Documentation/ABI, and it looks like it violates the "one value per file" rule...)
dlpar_store()
handle_dlpar_errorlog()
dlpar_memory()
dlpar_memory_remove_by_index()
Quoted 6 lines
Yes, the kernel by default sets 'dlpar' to 0644, BUT that means that root in a container can cause this use-after-free to happen, or if the permissions are changed by userspace, or if you are in "lockdown mode", or if you want to attempt the crazy "confidential computing" model, or if you have a system which root is possible for some things by normal users (there are lots of different security models out there...)
This is all nice but please do realize that if you allow access to to memory hotremove to any untrusted entity (be it a root in container or by changing access permissions) then the machine is in a serious resource management control trouble already and that is a security threat already.
Quoted 4 lines
Yes, I will argue that making the sysfs file writable by userspace is out of our control, but what is in our control is the fact that there is a out-of-bounds write that is fixed here, and we don't want those to be able to be triggered by anyone as that is a weakness in our codebase.
Yes, and that is why the fix is good and nobody disputes that. What I am actually trying to drill down to is whether this is an actual security threat worth assigning a CVE or it is just yet-anothing-pointless-CVE we were so used to with the old process.
Quoted 6 lines
That is what has caused the CVE to be created here, not the fact that root can remove memory as that's the normal expected operation to have happen here.
However if the maintainer of the code here disputes this, we are more than willing to mark this invalid and reject the CVE.
Michael, do you see any real security risk being addressed by bd68ffce69f6 ("powerpc/pseries/memhp: Fix access beyond end of drmem array").
Thanks!
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 9 lines · Greg Kroah-Hartman
Ok, I traced this call back, and here is the callpath, starting with a write to the the 'dlpar' sysfs file (conviently NOT documented in
Documentation/ABI, and it looks like it violates the "one value per file" rule...)
dlpar_store()
handle_dlpar_errorlog()
dlpar_memory()
dlpar_memory_remove_by_index()
Quoted 6 lines
Yes, the kernel by default sets 'dlpar' to 0644, BUT that means that root in a container can cause this use-after-free to happen, or if the permissions are changed by userspace, or if you are in "lockdown mode", or if you want to attempt the crazy "confidential computing" model, or if you have a system which root is possible for some things by normal users (there are lots of different security models out there...)
Whatever the security threat model, whoever can offline memory by writing to this file can kill the machine already. So there is no *additional* security issue fixed by this that'd justify a CVE.
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 24 lines · Michal Hocko
Quoted 23 lines · Greg KH
Quoted 21 lines · Michal Hocko
Quoted 14 lines · Greg KH
Description
===========In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries/memhp: Fix access beyond end of drmem array
dlpar_memory_remove_by_index()may access beyond the bounds of the drmem lmb array when the LMB lookup fails to match an entry with the given DRC index. When the search fails, the cursor is left pointing to &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the last valid entry in the array. The debug message at the end of the function then dereferences this pointer:Quoted 2 lines
pr_debug("Failed to hot-remove memory at %llx\n",
lmb->base_addr);While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please?
Quoted 8 lines
Quoted 5 lines
As you know, history has shown us that accessing out of your allocated memory can cause problems, and we can not assume use-cases, as we don't know how everyone uses our codebase, so marking places where we fix out-of-bound memory accesses is resolving a weakness in the codebase, hence a CVE assignment.
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Yes. Have you seen what USER_NS does? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.
Quoted 1 line
I guess we would need to ban interfaces like
/dev/memand many others.
Yes. Absolutely. :) Have you seen CONFIG_STRICT_DEVMEM, CONFIG_IO_STRICT_DEVMEM, etc? Many deployments keep a bright line between root and kernel. There is a whole subsystem (lockdown) for working to enforce this.
Quoted 8 lines
Quoted 3 lines
If your systems are not vulnerable to this specific issue, wonderful, no need to take it, but why wouldn't you want to take a fix that resolves a known weakness?
I have explicitly said, the fix is reasonable. I just do not see a point to mark it as CVE. I fail to see any thread model where this would matter as it would require untrusted privileged actor to trigger it AFAICS. I am happy to be proven wrong here.
Given that weaknesses are commonly chained together for exploits, it's just not possible to say something can never be used in an attack. Exploits are about slowly gaining more and more leverage on a system, expanding the scope of control a little more with each step.
It's not possible to make these distinctions without deep reachability analysis and an omniscient view of all Linux deployments.
There's no harm in marking fixes for weaknesses as CVEs, so why the push back?
-Kees
Signature · 1 line
Kees Cook
Quoted 1 line · Kees Cook
On Mon, Feb 26, 2024 at 04:25:09PM +0100, Michal Hocko wrote:
[...]
Quoted 6 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.
If we are over zealous to the point when almost any fix is marked CVE then the special marking simply stops making any sense IMHO.
Quoted 6 lines
Quoted 1 line
I guess we would need to ban interfaces like
/dev/memand many others.Yes. Absolutely. :) Have you seen
CONFIG_STRICT_DEVMEM,CONFIG_IO_STRICT_DEVMEM, etc? Many deployments keep a bright line between root and kernel. There is a whole subsystem (lockdown) for working to enforce this.
Are you confusing hardening with security relevant fixes here? It makes a lot of sense to reduce the attack space by sacrificing functionality for some usecases but in general a large part of the kernel is built around a "root can do anything" philosophy. Whether we like it or not. And that means that we do not even pretend to protect dubious configurations by root/CAP_SYSADMIN which could effectivelly DoS the system (just consider hotplug/hotremove as an example - try to run your workload when most CPUs or memory is offlined). Some operations are simply not suited for untrusted entity.
[...]
Quoted 2 lines
There's no harm in marking fixes for weaknesses as CVEs, so why the push back?
Because assigning CVEs nilly willy was the main downside of the prior process and I was hoping that the new one, in hands of kernel people, could be better and we could be getting more relevant CVEs.
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 6 lines · Michal Hocko
Quoted 1 line · Kees Cook
On Mon, Feb 26, 2024 at 04:25:09PM +0100, Michal Hocko wrote:
[...]
Quoted 3 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Quoted 6 lines
Quoted 3 lines
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.If we are over zealous to the point when almost any fix is marked CVE then the special marking simply stops making any sense IMHO.
Perhaps, but the volume of fixes is high, and I think it's better to over estimate than under estimate -- the work needed to actually evaluate all these changes is huge: it's better to take everything from -stable. This has been a long standing problem with communicating this to engineering management in many organizations. They have pointed to the relatively small number of CVEs and said, "just backport those fixes", and trying to explain that it's is totally insufficient falls on deaf ears.
Quoted 9 lines
Are you confusing hardening with security relevant fixes here? It makes a lot of sense to reduce the attack space by sacrificing functionality for some usecases but in general a large part of the kernel is built around a "root can do anything" philosophy. Whether we like it or not. And that means that we do not even pretend to protect dubious configurations by root/CAP_SYSADMIN which could effectivelly DoS the system (just consider hotplug/hotremove as an example - try to run your workload when most CPUs or memory is offlined). Some operations are simply not suited for untrusted entity.
Sure, I understand, but it's not possible to prove the negative. Perhaps this particular fix will never be used in an attack, but I don't think it's good to underestimate the creativity of attackers chaining unexpected states together.
Quoted 8 lines
[...]
Quoted 2 lines
There's no harm in marking fixes for weaknesses as CVEs, so why the push back?
Because assigning CVEs nilly willy was the main downside of the prior process and I was hoping that the new one, in hands of kernel people, could be better and we could be getting more relevant CVEs.
The old assignment pattern was both radically below actual fixes landing, and also regularly not applicable at all (CVEs for out-of-tree downstream patches against Linux). On both counts, I think the new process is better, even if it will produce some "very low" severity CVEs. :)
-Kees
Signature · 1 line
Kees Cook
Quoted 11 lines · Kees Cook
Quoted 10 lines · Michal Hocko
Quoted 1 line · Kees Cook
On Mon, Feb 26, 2024 at 04:25:09PM +0100, Michal Hocko wrote:
[...]
Quoted 6 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.
Quoted 7 lines
Quoted 2 lines
If we are over zealous to the point when almost any fix is marked CVE then the special marking simply stops making any sense IMHO.
Perhaps, but the volume of fixes is high, and I think it's better to over estimate than under estimate -- the work needed to actually evaluate all these changes is huge: it's better to take everything from -stable.
This is simply not feasible for many downstream kernels and reasons have been discussed many times.
Quoted 5 lines
This has been a long standing problem with communicating this to engineering management in many organizations. They have pointed to the relatively small number of CVEs and said, "just backport those fixes", and trying to explain that it's is totally insufficient falls on deaf ears.
I think it is fair to say/expect that every downstream is responsibile for the kernel they are distributing and that applies to vulnerabilities affecting those kernels. Forcing fixes by slapping CVE over them sounds just very dubious to me.
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Kees Cook
Quoted 12 lines · Michal Hocko
Quoted 1 line · Kees Cook
On Mon, Feb 26, 2024 at 04:25:09PM +0100, Michal Hocko wrote:
[...]
Quoted 6 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.If we are over zealous to the point when almost any fix is marked CVE then the special marking simply stops making any sense IMHO.
Quoted 7 lines
Quoted 4 lines
Perhaps, but the volume of fixes is high, and I think it's better to over estimate than under estimate -- the work needed to actually evaluate all these changes is huge: it's better to take everything from -stable.
This is simply not feasible for many downstream kernels and reasons have been discussed many times.
How does taking 10 patches differ from taking 200 patches? Your testing/infrastructure issues should be the same, right?
And really, if you have the crazy requirement of "All CVEs must be applied" then perhaps that needs to be revisited? You are dictating your business's processes to an external entity, is that wise? And if it is wise, why are you not able to handle it today? Making it simpler for you to consume these entries seems to be a better decision. With the changes we have made, you should be able to automatically determine if you are affected or not, which is something that you did NOT have before, so this might just be able to be automated, right?
Quoted 10 lines
Quoted 5 lines
This has been a long standing problem with communicating this to engineering management in many organizations. They have pointed to the relatively small number of CVEs and said, "just backport those fixes", and trying to explain that it's is totally insufficient falls on deaf ears.
I think it is fair to say/expect that every downstream is responsibile for the kernel they are distributing and that applies to vulnerabilities affecting those kernels. Forcing fixes by slapping CVE over them sounds just very dubious to me.
Not having CVEs assigned for things that can cause issues is dubious, which is why we are doing this. We can not determine use cases of our code base, that is up to you as a distro to figure out, all we can do is our best to call out "This might be something you want to take!" which is what we are doing here.
Remember, we KNOW that people have been scraping our commit logs for these types of things and using them in attacks for years. At least this way we are giving you a machine-parsable feed that gives you the opportunity to make your kernels more secure than they previously were.
Why is that not a good thing?
thanks,
greg k-h
On Thu 29-02-24 09:35:28, Greg KH wrote:
[...]
Quoted 2 lines
How does taking 10 patches differ from taking 200 patches? Your testing/infrastructure issues should be the same, right?
You would be right if there was a test of every/most of the applied patches. Which is not the case. The testing is merely about nothing has broken in an obvious way. I hope we can agree that more patches that are taken the larger the risk is.
I would have a much higher confidence in stable patches if they were properly reviewed in the context of the tree they are applied to. This is not done for the vast majority of them though. I simply do not trust "it applies so it is OK(ish)" approach.
Quoted 3 lines
And really, if you have the crazy requirement of "All CVEs must be applied" then perhaps that needs to be revisited? You are dictating your business's processes to an external entity, is that wise?
I do not think we (Suse) have any policy like that. We do evaluate CVEs and other fixes and make risk/benefit based decisions. This is a demanding process to say the least but it has allowed for very stable code base.
Quoted 6 lines
And if
it is wise, why are you not able to handle it today? Making it simpler for you to consume these entries seems to be a better decision. With the changes we have made, you should be able to automatically determine if you are affected or not, which is something that you did NOT have before, so this might just be able to be automated, right?
Not really. The most of those fixes already do have stable or Fixes tags so automation doesn't really require CVE number. If anybody is interested to follow fixes in general then all the proper metadata are already there.
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
This has been a long standing problem with communicating this to engineering management in many organizations. They have pointed to the relatively small number of CVEs and said, "just backport those fixes", and trying to explain that it's is totally insufficient falls on deaf ears.
I think it is fair to say/expect that every downstream is responsibile for the kernel they are distributing and that applies to vulnerabilities affecting those kernels. Forcing fixes by slapping CVE over them sounds just very dubious to me.
Quoted 5 lines
Not having CVEs assigned for things that can cause issues is dubious, which is why we are doing this. We can not determine use cases of our code base, that is up to you as a distro to figure out, all we can do is our best to call out "This might be something you want to take!" which is what we are doing here.
You are missing my point I am afraid. Downstreams do not need CVE numbers to fish for useful fixes. Downstreams, however, would appreciate the call out serious security problems to treat them with higher priority because believe me it makes a huge difference to address an exploitable problem promptly rather than one that is affecting a misconfigured system which is by definition vulnerable. And while I am sympathetic with your "we cannot assume usecases" statement, I believe we can still tell a difference that some configurations simply make no sense from the security perspective.
Quoted 4 lines
Remember, we KNOW that people have been scraping our commit logs for these types of things and using them in attacks for years. At least this way we are giving you a machine-parsable feed that gives you the opportunity to make your kernels more secure than they previously were.
They are going to do that whether you stick CVE on top or not.
Quoted 1 line
Why is that not a good thing?
Because the more dubious or outright bogus CVEs there are the less meaningful they will become.
Look, it seems there is a huge gap in our understanding of what the CVE is good for. I was really hopeful that the noise/signal ratio would be better with the new model but that doesn't seem to be the case so far. I was also hoped that the dispute process would be improved but judging from the discussion so far I have lost that hope as well.
Please asked yourself again who is going to benefit from this. Stable users certainly not, because they are supposed to use the latest stable kernels so all the fixes (no matter of CVE), downstreams based on stable kernels will not benefit either because of the same reason. Downstreams which are not based on stable trees will not benefit either because of the low signal/noise ratio and will need to find a better way to find important and safe fixes. Probably the only winner will be those fancy CVE scanners which will have more to scan.
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 21 lines · Greg Kroah-Hartman
Quoted 20 lines · Michal Hocko
Quoted 18 lines · Kees Cook
Quoted 6 lines · Michal Hocko
Quoted 1 line · Kees Cook
On Mon, Feb 26, 2024 at 04:25:09PM +0100, Michal Hocko wrote:
[...]
Quoted 3 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Quoted 6 lines
Quoted 3 lines
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.If we are over zealous to the point when almost any fix is marked CVE then the special marking simply stops making any sense IMHO.
Perhaps, but the volume of fixes is high, and I think it's better to over estimate than under estimate -- the work needed to actually evaluate all these changes is huge: it's better to take everything from -stable.
Quoted 5 lines
Quoted 2 lines
This is simply not feasible for many downstream kernels and reasons have been discussed many times.
How does taking 10 patches differ from taking 200 patches? Your testing/infrastructure issues should be the same, right?
It is more work to review 200 patches than to review 10. As you would know if you actually reviewed -stable patches or at least AUTOSEL ones.
Pavel
Signature · 1 line
People of Russia, stop Putin before his war on Ukraine escalates.
Hi!
Quoted 6 lines
Quoted 2 lines
Does that mean that any potentially incorrect input provided by an admin is considered CVE now?
Yes. Have you seen what
USER_NSdoes? There isn't a way to know how deployments are using Linux, and this is clearly a "weakness" as defined by CVE. It is better to be over zealous than miss things.
Is it?
What is happening now is DoS on anyone who tries to use CVE database... and on l-k users.
How do I get CVE number for that?
Pavel
Signature · 1 line
People of Russia, stop Putin before his war on Ukraine escalates.
Quoted 17 lines · Michal Hocko
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
This has been a long standing problem with communicating this to engineering management in many organizations. They have pointed to the relatively small number of CVEs and said, "just backport those fixes", and trying to explain that it's is totally insufficient falls on deaf ears.
I think it is fair to say/expect that every downstream is responsibile for the kernel they are distributing and that applies to vulnerabilities affecting those kernels. Forcing fixes by slapping CVE over them sounds just very dubious to me.
Quoted 5 lines
Not having CVEs assigned for things that can cause issues is dubious, which is why we are doing this. We can not determine use cases of our code base, that is up to you as a distro to figure out, all we can do is our best to call out "This might be something you want to take!" which is what we are doing here.
Quoted 9 lines
You are missing my point I am afraid. Downstreams do not need CVE numbers to fish for useful fixes. Downstreams, however, would appreciate the call out serious security problems to treat them with higher priority because believe me it makes a huge difference to address an exploitable problem promptly rather than one that is affecting a misconfigured system which is by definition vulnerable. And while I am sympathetic with your "we cannot assume usecases" statement, I believe we can still tell a difference that some configurations simply make no sense from the security perspective.
The reason we became a CNA is NOT because we want to only call out "high priority" issues, because obviously, we can not do that as we do not know anyone's use case and we can not claim any specific user is higher priority than another.
The reason we DID become a CNA was because there were entities out there filing CVEs against invalid stuff AND causing problems for everyone, including the kernel developers themselves, and making it impossible to ever get anything revoked no matter how wrong they were.
As part of the requirement to be a CNA, we have to announce everything that we think is a potential vulnerability, severity not be judged at all as that is NOT part of the CVE project or program. It is up to others to judge the severity, not us, nor the CVE group themselves, that's not what the ID is for.
So, because of this, we are now assigning CVE ids to everything that we review that we think is a vulnerability AND everything that people submit to us to have a CVE assigned to that they deem is a vulnerability. Many groups/people have already asked us for IDs and we have only turned one down so far (the submitter agreed that it wasn't an issue at all).
We also are required to go back through the GSD entries and create CVE entries for them as well, which is why you are seeing these "older" entries be created. We have many thousands to go through of them, so that will take us a while to catch up (next few months.)
Again, none of this has anything to do with "severity", it only is an identifier that says "this fixes a vulnerability".
Quoted 4 lines
Quoted 1 line
Why is that not a good thing?
Because the more dubious or outright bogus CVEs there are the less meaningful they will become.
That's not our problem or issue. All we care about is properly tagging things we see as fixes for vulnerabilities. Other groups can judge the "meaning of what a CVE is or not".
Quoted 5 lines
Look, it seems there is a huge gap in our understanding of what the CVE is good for. I was really hopeful that the noise/signal ratio would be better with the new model but that doesn't seem to be the case so far. I was also hoped that the dispute process would be improved but judging from the discussion so far I have lost that hope as well.
It's better than the old process where you could NOT even dispute a CVE and get it rejected at all, don't you think? We've already rejected a few, probably more than has ever been rejected for the kernel in the past few years.
We are working this out as we go, if you can come up with ways to make this easier for everyone involved, we are more than willing to work on it. But note, it's only been a week! Give us a chance please.
And the signal/noise all depends on your use case. Again, we can not judge that.
Quoted 8 lines
Please asked yourself again who is going to benefit from this. Stable users certainly not, because they are supposed to use the latest stable kernels so all the fixes (no matter of CVE), downstreams based on stable kernels will not benefit either because of the same reason. Downstreams which are not based on stable trees will not benefit either because of the low signal/noise ratio and will need to find a better way to find important and safe fixes. Probably the only winner will be those fancy CVE scanners which will have more to scan.
The overall community is going to benifit because more actual fixes will be picked up by the distros that today are not picking them up. It's pretty trivial to get root on most of the "enterprise" kernels today, and on many phones, because people are NOT picking the stable releases. I do a presentation every year at a major phone company where I show how easy it is to break their device just because they keep insisting that they "know" what commits to take from the stable kernels. They have finally changed their minds and will be taking stable updates, and I hope the enterprise kernels will as well.
But again, that's independent of the CVE process. We have taken it over because what was there was broken and abused by many bad actors. And again, we are now required to report as many issues as we notice, which is what we are doing. We will get some wrong over time, but overall, I only see complaints about 2-3 when we have already issued:
Number of assigned CVE ids, by year: 2019: 2 2020: 13 2021: 147 2022: 1 2023: 51 2024: 26 Total: 240
240 as of right now, and haven't really started the process of issuing ids for the current stable tree (i.e. 6.7.x).
thanks,
greg k-h
Quoted 5 lines · Greg Kroah-Hartman
As part of the requirement to be a CNA, we have to announce everything that we think is a potential vulnerability, severity not be judged at [...]
Again, none of this has anything to do with "severity", it only is an identifier that says "this fixes a vulnerability".
The language here can perhaps be improved for better understanding by folks since "CVE" and "vulnerability" can mean different things to different people. I would say "this fixes a weakness".
CVEs are for anything deemed a "weakness"[1]. It doesn't need to rise to the level of what many people would consider a "vulnerability". (Modern attacks traditionally chain many weaknesses together to form an exploit, some of which look harmless when examined in isolation.)
I find it helps to keep in mind the "CIA" acronym of what makes up a security weakness: "negative impact to Confidentiality, Integrity, or Availability". (Not to be confused with the US Gov intelligence org with the name acronym, ironically.)
-Kees
Signature · 1 line
Kees Cook
Quoted 1 line · Greg Kroah-Hartman
It's pretty trivial to get root on most of the "enterprise" kernels
Wow, that's a very strong statement you are making here, and I'd now really like to ask you to back that up with some real data.
(or at least first clarify what exactly you mean when you are saying "enterprise kernels").
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 6 lines · Jiri Kosina
Quoted 1 line · Greg Kroah-Hartman
It's pretty trivial to get root on most of the "enterprise" kernels
Wow, that's a very strong statement you are making here, and I'd now really like to ask you to back that up with some real data.
Is something like https://www.suse.com/security/cve/CVE-2023-52447.html
a good example?
Signature · 2 lines
Thanks, Sasha
Quoted 7 lines · Sasha Levin
Quoted 4 lines
Quoted 1 line
It's pretty trivial to get root on most of the "enterprise" kernels
Wow, that's a very strong statement you are making here, and I'd now really like to ask you to back that up with some real data.
Is something like https://www.suse.com/security/cve/CVE-2023-52447.html
a good example?
- this fix is on our list/queue to be integrated into one of our kernel branches, and was even beore it just got CVE assigned, as it references a commit in Fixes: that we have present in one of our branches, but hasn't been processed yet, mainly because we don't allow unprivileged BPF
- you pointed to a fix for UAF in BPF, which definitely is a good fix to have, I don't even dispute that CVE is justified in this particular case. What I haven't yet seen though how this connects to in my view rather serious 'trivial to get root' statement
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 4 lines · Jiri Kosina
- you pointed to a fix for UAF in BPF, which definitely is a good fix to have, I don't even dispute that CVE is justified in this particular case. What I haven't yet seen though how this connects to in my view rather serious 'trivial to get root' statement
To elaborate on this a little bit more -- I completely agree that this fix is completely in-line with what Kees is, in my view, quite nicely describing at [1]. You pointed to a weakness (for which a fix *is* in our queue), sure.
But I see a HUGE leap from "fixes a weakness" to bold, aggressive and in my view exaggerating statements a-la "I am able to trivially pwn any kernel which is not -stable".
[1] https://lore.kernel.org/all/[email protected]/
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 18 lines · Kees Cook
Quoted 5 lines · Greg Kroah-Hartman
As part of the requirement to be a CNA, we have to announce everything that we think is a potential vulnerability, severity not be judged at [...]
Again, none of this has anything to do with "severity", it only is an identifier that says "this fixes a vulnerability".The language here can perhaps be improved for better understanding by folks since "CVE" and "vulnerability" can mean different things to different people. I would say "this fixes a weakness".
CVEs are for anything deemed a "weakness"[1]. It doesn't need to rise to the level of what many people would consider a "vulnerability". (Modern attacks traditionally chain many weaknesses together to form an exploit, some of which look harmless when examined in isolation.)
Quoted 4 lines
I find it helps to keep in mind the "CIA" acronym of what makes up a security weakness: "negative impact to Confidentiality, Integrity, or Availability". (Not to be confused with the US Gov intelligence org with the name acronym, ironically.)
Yes, this makes a lot of sense to me and I believe we are on the same page here. We have gone in several tangents here but let me just remind that I was objecting/wondering how much sense does it make to assign CVE to configurations which are inherently insecure. From a user POV, does it make me safer to have that addressed when the fundamental configuration hole (to allow untrusted user to access said resources) still in place. See my point or do I still fail to explain myself? It is not about assuming usecases and whatnot.
Quoted 3 lines
-Kees
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 7 lines · Jiri Kosina
Quoted 5 lines · Sasha Levin
Quoted 4 lines
Quoted 1 line
It's pretty trivial to get root on most of the "enterprise" kernels
Wow, that's a very strong statement you are making here, and I'd now really like to ask you to back that up with some real data.
Quoted 8 lines
Quoted 2 lines
Is something like https://www.suse.com/security/cve/CVE-2023-52447.html
a good example?- this fix is on our list/queue to be integrated into one of our kernel branches, and was even beore it just got CVE assigned, as it references a commit in Fixes: that we have present in one of our branches, but hasn't been processed yet, mainly because we don't allow unprivileged BPF
This comment touches on two points raised in this thread:
Greg's point that instead of taking all the fixes, they end up in queues waiting to be processed, which means that the trees en up being vulnerable during that time.
Kees's point that exploitation is rarely a single issue coming in to play, but is usually a long chain of different exploits coming together to achieve a goal.
Quoted 4 lines
- you pointed to a fix for UAF in BPF, which definitely is a good fix to have, I don't even dispute that CVE is justified in this particular case. What I haven't yet seen though how this connects to in my view rather serious 'trivial to get root' statement
Yes, the patch reads like a fix for a UAF.
Signature · 2 lines
Thanks, Sasha
Quoted 7 lines · Jiri Kosina
Quoted 4 lines · Jiri Kosina
- you pointed to a fix for UAF in BPF, which definitely is a good fix to have, I don't even dispute that CVE is justified in this particular case. What I haven't yet seen though how this connects to in my view rather serious 'trivial to get root' statement
Quoted 8 lines
To elaborate on this a little bit more -- I completely agree that this fix is completely in-line with what Kees is, in my view, quite nicely describing at [1]. You pointed to a weakness (for which a fix *is* in our queue), sure.
But I see a HUGE leap from "fixes a weakness" to bold, aggressive and in my view exaggerating statements a-la "I am able to trivially pwn any kernel which is not -stable".
{sigh}
I do not mean _any_ enterprise kernel, I said "most", some I did not find any problems with at all that I could tell. This was true the last time I did this exercise about 9 or so months ago for a presentation, and hey, it might have changed since then, I sure hope so for everyone's sake.
Sorry, I will NOT say what distros I did, or did not, find vunerable. That's not my place to say here in public for obvious reasons, but I'm more than willing to discuss it over drinks in-person anytime.
thanks,
greg k-h
Quoted 2 lines · Michal Hocko
[Let me add Michael as PPC maintainer - the thread starts with
http://lkml.kernel.org/r/2024022257-CVE-2023-52451-7bdb@gregkh]
Sorry just saw this ...
Quoted 23 lines · Greg KH
Quoted 1 line · Michal Hocko
[...]
Quoted 13 lines
Quoted 3 lines
All that being said I dispute the issue fixed here has any more security relevance than allowing untrusted user to control memory hotplug which could easily result in DoS of the system.
Ok, I traced this call back, and here is the callpath, starting with a write to the the 'dlpar' sysfs file (conviently NOT documented in
Documentation/ABI, and it looks like it violates the "one value per file" rule...)
dlpar_store()
handle_dlpar_errorlog()
dlpar_memory()
dlpar_memory_remove_by_index()Quoted 6 lines
Yes, the kernel by default sets 'dlpar' to 0644, BUT that means that root in a container can cause this use-after-free to happen, or if the permissions are changed by userspace, or if you are in "lockdown mode", or if you want to attempt the crazy "confidential computing" model, or if you have a system which root is possible for some things by normal users (there are lots of different security models out there...)
Quoted 5 lines
This is all nice but please do realize that if you allow access to to memory hotremove to any untrusted entity (be it a root in container or by changing access permissions) then the machine is in a serious resource management control trouble already and that is a security threat already.
The standard container runtimes, eg. podman/docker, will mount /sys as read-only by default. So at least in typical situations root in a container will not be able to trigger this issue.
Quoted 14 lines
Quoted 4 lines
Yes, I will argue that making the sysfs file writable by userspace is out of our control, but what is in our control is the fact that there is a out-of-bounds write that is fixed here, and we don't want those to be able to be triggered by anyone as that is a weakness in our codebase.
Yes, and that is why the fix is good and nobody disputes that. What I am actually trying to drill down to is whether this is an actual security threat worth assigning a CVE or it is just yet-anothing-pointless-CVE we were so used to with the old process.
Quoted 4 lines
That is what has caused the CVE to be created here, not the fact that root can remove memory as that's the normal expected operation to have happen here.
Quoted 6 lines
Quoted 2 lines
However if the maintainer of the code here disputes this, we are more than willing to mark this invalid and reject the CVE.
Michael, do you see any real security risk being addressed by
bd68ffce69f6("powerpc/pseries/memhp: Fix access beyond end of drmem array").
No I don't think this bug on its own is a "real" security risk.
It allows root to print 8 bytes of kernel memory it's not supposed to, but there's no way for the attacker to control what 8 bytes. So I doubt that's actually useful for constructing an exploit.
But as Kees explained elsewhere, a CVE can be for any weakness, not just actual vulnerabilties.
So under that definition I'm quite happy for this to be given a CVE.
cheers