-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak in serialize_indirect_attribute() #387
Comments
When |
My mistake, you're right, there misses a call to |
My pleasure :) Since memory leakage can lead to security issues, such as DoS (Denial of Service), could you assign a CVE for this bug? |
I don't think this issues falls in the scope of a security vulnerability. @jbech-linaro, any thought? @hoyong2007, we thank you for your contributions in OP-TEE, however that please note that if you think you have found a security flaw in OP-TEE, we would prefer you follow the vulnerability reporting procedure detailed here: |
Fix memory allocation leakage with a call to release_serial_object() to release obj2 before serialize_indirect_attribute() returns. Link: OP-TEE#387 Fixes: e88c264 ("libckteec: helper function to serialize a attribute template") Signed-off-by: Hoyong Jin <[email protected]>
Fix memory allocation leakage with a call to release_serial_object() to release obj2 before serialize_indirect_attribute() returns. Link: OP-TEE#387 Fixes: e88c264 ("libckteec: helper function to serialize a attribute template") Signed-off-by: Hoyong Jin <[email protected]> Reviewed-by: Etienne Carriere <[email protected]>
Fix memory allocation leakage with a call to release_serial_object() to release obj2 before serialize_indirect_attribute() returns. Link: #387 Fixes: e88c264 ("libckteec: helper function to serialize a attribute template") Signed-off-by: Hoyong Jin <[email protected]> Reviewed-by: Etienne Carriere <[email protected]>
I believe that persistent memory leaks can exhaust system-wide memory, potentially compromising the availability of other applications. |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
Commit: a5b1ffc (master)
File:
libckteec/src/serialize_ck.c#L104
Function:
serialize_indirect_attribute()
In the
serialize_indirect_attribute()
function,serialize_ck_attributes()
function call allocate memory toobj2
, but the allocated memory is not properly freed, leading to a memory leak.This can degrade performance over time, particularly in long-running processes where the function is frequently called.
Credit: @hoyong2007 @jch6637
The text was updated successfully, but these errors were encountered: