title: powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
description: In the Linux kernel, the following vulnerability has been resolved:
powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 1da177e4c3f4, lessThan: 21e45a7b08d7, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: f6781add1c31, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: aa28eecb43ca, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: ac3ed969a403, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: d482d61025e3, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 145febd85c3b, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: ffd29dc45bc0, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: f46c8a75263f, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 4.19.307, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.269, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.210, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.149, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.77, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.16, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.4, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
