berlin-open-wireless-lab / DAWN

Decentralized WiFi Controller
GNU General Public License v2.0
351 stars 62 forks source link

[bug] A UAF bug in src/storage/datastorage.c #214

Open ShangzhiXu opened 1 year ago

ShangzhiXu commented 1 year ago

In this file from line 1337-1341, it looks like this

    {
        free(line);
        dawn_unregmem(line);
    }

after free the line, in dawn_unregmem(line), the line will be used again, I'm wondering if it will lead to UAF