Stock could be considered legal because there is no convex section. Both the rails and the cutout are flat.
Definition of convex:
convex
[ˌkänˈveks, ˈkänveks]
ADJECTIVE
having an outline or surface curved like the exterior of a circle or sphere.Compare with concave.
"a convex lens"
synonyms...