Skip to content
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

Fix use after free problem in libsemanage conf-parse #293

Closed
HuaxinLu opened this issue Jun 16, 2021 · 1 comment
Closed

Fix use after free problem in libsemanage conf-parse #293

HuaxinLu opened this issue Jun 16, 2021 · 1 comment

Comments

@HuaxinLu
Copy link

My environment:

# cat /etc/fedora-release 
Fedora release 34 (Thirty Four)
# rpm -qa libsemanage
libsemanage-3.2-1.fc34.x86_64

Set /etc/selinux/semanage.conf as follows:

......
module-store = foo.com:4242
......
bzip-blocksize=11
......

Use semanage command to add a file context:

# semanage fcontext -a -t bin_t /home/test
error parsing semanage configuration file: bzip-blocksize can only be in the range 0-9
free(): double free detected in tcache 2
Aborted (core dumped)

The patch has been submitted to mail list (here):

@fishilico
Copy link
Member

Thanks for the report! The patch has been applied: 6bff61c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants