PKA: Fix NULL pointer kfree() issue
Bug #1931584 reported by
Mahantesh Salimath
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Mahantesh Salimath |
Bug Description
SRU Justification:
[Impact]
* Should not free NULL pointer. If the pointer is NULL as a result of memory allocation (kmalloc()),
only return an error code and don't free (kfree()) a NULL pointer. Even though kfree() won't perform
any operation if NULL is passed, this is not a good practice.
[Fix]
* Don't free NULL pointer "pka: Fix NULL pointer kfree() issue"
[Test Case]
* No change in functionality.
[Regression Potential]
* Regression can be considered very low as the pointer won't be kfree()'d only in the case of it
being NULL. This is functionally equivalent to passing NULL pointer to kfree() as no operation will be
performed in this case.
CVE References
Changed in linux-bluefield (Ubuntu Focal): | |
assignee: | nobody → Mahantesh Salimath (mahantesh92) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux-bluefield (Ubuntu): | |
status: | New → Invalid |
Changed in linux-bluefield (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-focal removed: verification-needed-focal |
To post a comment you must log in.
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- focal' to 'verification- done-focal' . If the problem still exists, change the tag 'verification- needed- focal' to 'verification- failed- focal'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!