Commit 589e2db
libsepol: check scope permissions refer to valid class
Validate that the permission maps in the scope index refer to a valid
class datum. Otherwise since commit 52e5c30 ("libsepol: move unchanged
data out of loop") this can lead to a NULL dereference in the class
existence check during linking.
Reported-by: oss-fuzz (issue 69655)
Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>1 parent 1efc121 commit 589e2db
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
1471 | 1473 | | |
1472 | 1474 | | |
1473 | 1475 | | |
| |||
1484 | 1486 | | |
1485 | 1487 | | |
1486 | 1488 | | |
1487 | | - | |
1488 | | - | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1489 | 1493 | | |
1490 | 1494 | | |
1491 | 1495 | | |
| |||
0 commit comments