Gain-of-function mutations in SHP2 often lead to increased phosphatase activity, which can result in enhanced signaling through pathways like Ras/MAPK. This can cause uncontrolled cell proliferation and survival, contributing to oncogenesis. Conversely, loss-of-function mutations can impair normal cellular signaling and may also contribute to cancer by disrupting cellular homeostasis.