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

nanny: fix use-after-free in debug mode (bsc#1206447) #945

Merged
merged 1 commit into from
Jan 24, 2023

Commits on Jan 24, 2023

  1. nanny: fix use-after-free in debug mode (bsc#1206447)

    Fix a use-after-free by getting a local mpolicy->fsm_policy reference
    in unregister_managed_policy to safely access the fsm policy name for
    a debug message logged after unregistering the mpolicy object, which
    is freeing the mpolicy (if it's the last reference).
    
    A policy deletion is performed by wicked ifdown or ifreload and the
    execution is limited to root (uid 0) callers, so it does not bring
    additional privilege possibilities.
    mtomaschewski committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    8e28aa1 View commit details
    Browse the repository at this point in the history