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 object reference count problem on error path in AcpiExOpcode_1A_0T_1R #685

Commits on Apr 12, 2021

  1. Fix object reference count problem on error path in AcpiExOpcode_1A_0…

    …T_1R
    
    Prevent an unwarranted AcpiUtRemoveReference on an attached object
    in AcpiExOpcode_1A_0T_1R when AcpiExReadDataFromField returns an
    error. The extra decrement of the object's reference count results
    in the premature deletion of that object while it is still attached.
    Any subsequent reference to that attached object becomes a use-after-
    free and can result in an OS crash.
    
    One real world example of how this error path can be encountered is
    on evaluation of RefOf() a local region field where there is no
    registered handler for that OpRegion.
    
    Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
    LennySzubowicz committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    cf6f73d View commit details
    Browse the repository at this point in the history