Bug 4095 - bug: a potential NULL pointer access in ima_restore_measurement_list
Summary: bug: a potential NULL pointer access in ima_restore_measurement_list
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: 4.19-028.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 10:41 UTC by niuyachen
Modified: 2023-02-28 19:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description niuyachen inspur_group 2023-02-17 10:41:20 UTC
Description of problem:

In restore_template_fmt, when kstrdup fails, a non-NULL value will still be
returned, which causes a NULL pointer access in template_desc_init_fields.
Comment 1 maqiao alibaba_cloud_group 2023-02-28 19:38:25 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/1204